From 6ba61538d8eea05579732d069a7bd3a340e2b5cb Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 1 Apr 2022 09:12:08 +0000 Subject: [PATCH 001/190] Auto-generated commit 104c5d60bfe9f2d0c991438dd68b195e7bae49ee --- CONTRIBUTORS | 28 + LICENSE | 481 +++++++++ NOTICE | 1 + README.md | 244 +++++ index.d.ts | 582 +++++++++++ index.mjs | 4 + index.mjs.map | 1 + package.json | 46 + stats.html | 2689 +++++++++++++++++++++++++++++++++++++++++++++++++ 9 files changed, 4076 insertions(+) create mode 100644 CONTRIBUTORS create mode 100644 LICENSE create mode 100644 NOTICE create mode 100644 README.md create mode 100644 index.d.ts create mode 100644 index.mjs create mode 100644 index.mjs.map create mode 100644 package.json create mode 100644 stats.html diff --git a/CONTRIBUTORS b/CONTRIBUTORS new file mode 100644 index 0000000..e5c896d --- /dev/null +++ b/CONTRIBUTORS @@ -0,0 +1,28 @@ +# This file is generated by tools/scripts/update_contributors. +# +# Contributors listed in alphabetical order. + +Ali Salesi +Athan Reines +Brendan Graetz +Bruno Fenzl +Christopher Dambamuromo +Dominik Moritz +Frank Kovacs +James +Jithin KS +Joey Reed +Joris Labie +Justin Dennison +Marcus +Matt Cochrane +Milan Raj +Momtchil Momtchev +Ognjen Jevremović +Philipp Burckhardt +Ricky Reusser +Ryan Seal +Seyyed Parsa Neshaei +Shraddheya Shendre +dorrin-sot <59933477+dorrin-sot@users.noreply.github.com> +rei2hu diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..fcc9934 --- /dev/null +++ b/LICENSE @@ -0,0 +1,481 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + + +Boost Software License - Version 1.0 - August 17th, 2003 + +Permission is hereby granted, free of charge, to any person or organization +obtaining a copy of the software and accompanying documentation covered by this +license (the "Software") to use, reproduce, display, distribute, execute, and +transmit the Software, and to prepare derivative works of the Software, and to +permit third-parties to whom the Software is furnished to do so, all subject to +the following: + +The copyright notices in the Software and this entire statement, including the +above license grant, this restriction and the following disclaimer, must be +included in all copies of the Software, in whole or in part, and all derivative +works of the Software, unless such copies or derivative works are solely in the +form of machine-executable object code generated by a source language processor. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE +COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES +OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF +OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + + +DEPENDENCIES + +The library links against the following external libraries, which have their own +licenses: + +* OpenBLAS + +Copyright (c) 2011-2014, The OpenBLAS Project +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + + 3. Neither the name of the OpenBLAS project nor the names of + its contributors may be used to endorse or promote products + derived from this software without specific prior written + permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF +THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +* Electron + +Copyright (c) 2013-2017 GitHub Inc. + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +* Boost + +Boost Software License - Version 1.0 - August 17th, 2003 + +Permission is hereby granted, free of charge, to any person or organization +obtaining a copy of the software and accompanying documentation covered by +this license (the "Software") to use, reproduce, display, distribute, +execute, and transmit the Software, and to prepare derivative works of the +Software, and to permit third-parties to whom the Software is furnished to +do so, all subject to the following: + +The copyright notices in the Software and this entire statement, including +the above license grant, this restriction and the following disclaimer, +must be included in all copies of the Software, in whole or in part, and +all derivative works of the Software, unless such copies or derivative +works are solely in the form of machine-executable object code generated by +a source language processor. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT +SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE +FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + + +* Cephes + +Copyright (c) 1984-2000 Stephen L. Moshier + +Some software in this archive may be from the book _Methods and Programs for +Mathematical Functions_ (Prentice-Hall or Simon & Schuster International, 1989) +or from the Cephes Mathematical Library, a commercial product. In either event, +it is copyrighted by the author. What you see here may be used freely but it +comes with no support or guarantee. + +Stephen L. Moshier +moshier@na-net.ornl.gov + + + +ATTRIBUTION + +The library contains implementations from the following external libraries, +which have their own licenses: + +* FreeBSD + +Copyright (C) 1993-2004 by Sun Microsystems, Inc. All rights reserved. + +Developed at SunPro, a Sun Microsystems, Inc. business. +Permission to use, copy, modify, and distribute this +software is freely granted, provided that this notice +is preserved. + + +* FDLIBM + +Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved. + +Developed at SunPro, a Sun Microsystems, Inc. business. +Permission to use, copy, modify, and distribute this +software is freely granted, provided that this notice +is preserved. + + +* Go + +Copyright (c) 2009 The Go Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +* SLATEC Common Mathematical Library + +Public domain. + + +* ESLint + +Copyright JS Foundation and other contributors, https://js.foundation + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +* StatsFuns.jl + +Copyright (c) 2015: Dahua Lin. + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +* SpecialFunctions.jl + +The MIT License (MIT) + +Copyright (c) 2017 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and others: + +https://github.com/JuliaMath/SpecialFunctions.jl/graphs/contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +* MT19937 + +Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura, +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + 3. The names of its contributors may not be used to endorse or promote + products derived from this software without specific prior written + permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/NOTICE b/NOTICE new file mode 100644 index 0000000..10e6ba1 --- /dev/null +++ b/NOTICE @@ -0,0 +1 @@ +Copyright (c) 2016-2022 The Stdlib Authors. diff --git a/README.md b/README.md new file mode 100644 index 0000000..d95d386 --- /dev/null +++ b/README.md @@ -0,0 +1,244 @@ + + +# Assert + +[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] + +> Base math assertion utilities. + + + +
+ +## Usage + +```javascript +import ns from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@esm/index.mjs'; +``` + +#### ns + +Namespace containing "base" (i.e., lower-level) math assertion utilities. + +```javascript +var o = ns; +// returns {...} +``` + + + +
+ +- [`isEvenInt32( x )`][@stdlib/math/base/assert/int32-is-even]: test if a 32-bit integer is even. +- [`isOddInt32( x )`][@stdlib/math/base/assert/int32-is-odd]: test if a 32-bit integer is odd. +- [`isComposite( x )`][@stdlib/math/base/assert/is-composite]: test if a number is a composite. +- [`isCoprime( a, b )`][@stdlib/math/base/assert/is-coprime]: test if two numbers are coprime. +- [`isEven( x )`][@stdlib/math/base/assert/is-even]: test if a finite numeric value is an even number. +- [`isFinite( x )`][@stdlib/math/base/assert/is-finite]: test if a double-precision floating-point numeric value is finite. +- [`isFinitef( x )`][@stdlib/math/base/assert/is-finitef]: test if a single-precision floating-point numeric value is finite. +- [`isInfinite( x )`][@stdlib/math/base/assert/is-infinite]: test if a double-precision floating-point numeric value is infinite. +- [`isInfinitef( x )`][@stdlib/math/base/assert/is-infinitef]: test if a single-precision floating-point numeric value is infinite. +- [`isInteger( x )`][@stdlib/math/base/assert/is-integer]: test if a finite double-precision floating-point number is an integer. +- [`isnan( x )`][@stdlib/math/base/assert/is-nan]: test if a double-precision floating-point numeric value is NaN. +- [`isnanf( x )`][@stdlib/math/base/assert/is-nanf]: test if a single-precision floating-point numeric value is NaN. +- [`isNegativeInteger( x )`][@stdlib/math/base/assert/is-negative-integer]: test if a finite double-precision floating-point number is a negative integer. +- [`isNegativeZero( x )`][@stdlib/math/base/assert/is-negative-zero]: test if a double-precision floating-point numeric value is negative zero. +- [`isNegativeZerof( x )`][@stdlib/math/base/assert/is-negative-zerof]: test if a single-precision floating-point numeric value is negative zero. +- [`isNonNegativeInteger( x )`][@stdlib/math/base/assert/is-nonnegative-integer]: test if a finite double-precision floating-point number is a nonnegative integer. +- [`isNonPositiveInteger( x )`][@stdlib/math/base/assert/is-nonpositive-integer]: test if a finite double-precision floating-point number is a nonpositive integer. +- [`isOdd( x )`][@stdlib/math/base/assert/is-odd]: test if a finite numeric value is an odd number. +- [`isPositiveInteger( x )`][@stdlib/math/base/assert/is-positive-integer]: test if a finite double-precision floating-point number is a positive integer. +- [`isPositiveZero( x )`][@stdlib/math/base/assert/is-positive-zero]: test if a double-precision floating-point numeric value is positive zero. +- [`isPositiveZerof( x )`][@stdlib/math/base/assert/is-positive-zerof]: test if a single-precision floating-point numeric value is positive zero. +- [`isPrime( x )`][@stdlib/math/base/assert/is-prime]: test if a number is a prime. +- [`isProbability( x )`][@stdlib/math/base/assert/is-probability]: test if a numeric value is a probability. +- [`isSafeInteger( x )`][@stdlib/math/base/assert/is-safe-integer]: test if a finite double-precision floating-point number is a safe integer. +- [`isPow2Uint32( x )`][@stdlib/math/base/assert/uint32-is-pow2]: test whether an unsigned integer is a power of 2. + +
+ + + +
+ + + +
+ +## Examples + + + + + +```html + + + + + + +``` + +
+ + + + + + + + + + + + +
+ +* * * + +## Notice + +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. + +For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. + +#### Community + +[![Chat][chat-image]][chat-url] + +--- + +## License + +See [LICENSE][stdlib-license]. + + +## Copyright + +Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors]. + +
+ + + + + + + + diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..4db31dd --- /dev/null +++ b/index.d.ts @@ -0,0 +1,582 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2021 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +// TypeScript Version: 2.0 + +/* tslint:disable:max-line-length */ +/* tslint:disable:max-file-line-count */ + +import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); +import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); +import isComposite = require( '@stdlib/math-base-assert-is-composite' ); +import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); +import isEven = require( '@stdlib/math-base-assert-is-even' ); +import isFinite = require( '@stdlib/math-base-assert-is-finite' ); +import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); +import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); +import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); +import isInteger = require( '@stdlib/math-base-assert-is-integer' ); +import isnan = require( '@stdlib/math-base-assert-is-nan' ); +import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); +import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); +import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); +import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); +import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); +import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); +import isOdd = require( '@stdlib/math-base-assert-is-odd' ); +import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); +import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); +import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); +import isPrime = require( '@stdlib/math-base-assert-is-prime' ); +import isProbability = require( '@stdlib/math-base-assert-is-probability' ); +import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); +import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); + +/** +* Interface describing the `assert` namespace. +*/ +interface Namespace { + /** + * Tests if a 32-bit integer is even. + * + * @param x - value to test + * @returns boolean indicating whether the value is even + * + * @example + * var bool = ns.isEvenInt32( 5 ); + * // returns false + * + * @example + * var bool = ns.isEvenInt32( -2 ); + * // returns true + * + * @example + * var bool = ns.isEvenInt32( 0 ); + * // returns true + */ + isEvenInt32: typeof isEvenInt32; + + /** + * Tests if a 32-bit integer is odd. + * + * @param x - value to test + * @returns boolean indicating whether the value is odd + * + * @example + * var bool = ns.isOddInt32( 5 ); + * // returns true + * + * @example + * var bool = ns.isOddInt32( -2 ); + * // returns false + * + * @example + * var bool = ns.isOddInt32( 0 ); + * // returns false + */ + isOddInt32: typeof isOddInt32; + + /** + * Tests if a number is composite. + * + * @param x - value to test + * @returns boolean indicating whether the value is a composite number + * + * @example + * var bool = ns.isComposite( 10.0 ); + * // returns true + * + * @example + * var bool = ns.isComposite( 11.0 ); + * // returns false + */ + isComposite: typeof isComposite; + + /** + * Tests if two numbers are coprime. + * + * @param a - first value + * @param b - second value + * @returns boolean indicating whether the two values are coprime + * + * @example + * var bool = ns.isCoprime( 14.0, 15.0 ); + * // returns true + * + * @example + * var bool = ns.isCoprime( 14.0, 21.0 ); + * // returns false + */ + isCoprime: typeof isCoprime; + + /** + * Tests if a finite numeric value is an even number. + * + * ## Notes + * + * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. + * + * @param x - value to test + * @returns boolean indicating whether the value is an even number + * + * @example + * var bool = ns.isEven( 5.0 ); + * // returns false + * + * @example + * var bool = ns.isEven( -2.0 ); + * // returns true + * + * @example + * var bool = ns.isEven( 0.0 ); + * // returns true + * + * @example + * var bool = ns.isEven( NaN ); + * // returns false + */ + isEven: typeof isEven; + + /** + * Tests if a double-precision floating-point numeric value is finite. + * + * @param x - value to test + * @returns boolean indicating whether the value is finite + * + * @example + * var bool = ns.isFinite( 5.0 ); + * // returns true + * + * @example + * var bool = ns.isFinite( -2.0e64 ); + * // returns true + * + * @example + * var bool = ns.isFinite( Infinity ); + * // returns false + * + * @example + * var bool = ns.isFinite( -Infinity ); + * // returns false + */ + isFinite: typeof isFinite; + + /** + * Tests if a single-precision floating-point numeric value is finite. + * + * @param x - value to test + * @returns boolean indicating whether the value is finite + * + * @example + * var bool = ns.isFinitef( 5.0 ); + * // returns true + * + * @example + * var bool = ns.isFinitef( -2.0e64 ); + * // returns true + * + * @example + * var bool = ns.isFinitef( Infinity ); + * // returns false + * + * @example + * var bool = ns.isFinitef( -Infinity ); + * // returns false + */ + isFinitef: typeof isFinitef; + + /** + * Tests if a double-precision floating-point numeric value is infinite. + * + * @param x - value to test + * @returns boolean indicating whether the value is infinite + * + * @example + * var bool = ns.isInfinite( Infinity ); + * // returns true + * + * @example + * var bool = ns.isInfinite( -Infinity ); + * // returns true + * + * @example + * var bool = ns.isInfinite( 5.0 ); + * // returns false + * + * @example + * var bool = ns.isInfinite( NaN ); + * // returns false + */ + isInfinite: typeof isInfinite; + + /** + * Tests if a single-precision floating-point numeric value is infinite. + * + * @param x - value to test + * @returns boolean indicating whether the value is infinite + * + * @example + * var bool = ns.isInfinitef( Infinity ); + * // returns true + * + * @example + * var bool = ns.isInfinitef( -Infinity ); + * // returns true + * + * @example + * var bool = ns.isInfinitef( 5.0 ); + * // returns false + * + * @example + * var bool = ns.isInfinitef( NaN ); + * // returns false + */ + isInfinitef: typeof isInfinitef; + + /** + * Tests if a finite double-precision floating-point number is an integer. + * + * ## Notes + * + * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. + * + * @param x - value to test + * @returns boolean indicating whether the value is an integer + * + * @example + * var bool = ns.isInteger( 1.0 ); + * // returns true + * + * @example + * var bool = ns.isInteger( 3.14 ); + * // returns false + */ + isInteger: typeof isInteger; + + /** + * Tests if a double-precision floating-point numeric value is `NaN`. + * + * @param x - value to test + * @returns boolean indicating whether the value is `NaN` + * + * @example + * var bool = ns.isnan( NaN ); + * // returns true + * + * @example + * var bool = ns.isnan( 7.0 ); + * // returns false + */ + isnan: typeof isnan; + + /** + * Tests if a single-precision floating-point numeric value is `NaN`. + * + * @param x - value to test + * @returns boolean indicating whether the value is `NaN` + * + * @example + * var bool = ns.isnanf( NaN ); + * // returns true + * + * @example + * var bool = ns.isnanf( 7.0 ); + * // returns false + */ + isnanf: typeof isnanf; + + /** + * Tests if a finite double-precision floating-point number is a negative integer. + * + * ## Notes + * + * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. + * + * @param x - value to test + * @returns boolean indicating whether the value is a negative integer + * + * @example + * var bool = ns.isNegativeInteger( -1.0 ); + * // returns true + * + * @example + * var bool = ns.isNegativeInteger( 0.0 ); + * // returns false + * + * @example + * var bool = ns.isNegativeInteger( 10.0 ); + * // returns false + */ + isNegativeInteger: typeof isNegativeInteger; + + /** + * Tests if a double-precision floating-point numeric value is negative zero. + * + * @param x - value to test + * @returns boolean indicating whether the value is negative zero + * + * @example + * var bool = ns.isNegativeZero( -0.0 ); + * // returns true + * + * @example + * var bool = ns.isNegativeZero( 0.0 ); + * // returns false + */ + isNegativeZero: typeof isNegativeZero; + + /** + * Tests if a single-precision floating-point numeric value is negative zero. + * + * @param x - value to test + * @returns boolean indicating whether the value is negative zero + * + * @example + * var bool = ns.isNegativeZerof( -0.0 ); + * // returns true + * + * @example + * var bool = ns.isNegativeZerof( 0.0 ); + * // returns false + */ + isNegativeZerof: typeof isNegativeZerof; + + /** + * Tests if a finite double-precision floating-point number is a nonnegative integer. + * + * ## Notes + * + * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. + * - The function does not distinguish between positive and negative zero. + * + * @param x - value to test + * @returns boolean indicating whether the value is a nonnegative integer + * + * @example + * var bool = ns.isNonNegativeInteger( 1.0 ); + * // returns true + * + * @example + * var bool = ns.isNonNegativeInteger( 0.0 ); + * // returns true + * + * @example + * var bool = ns.isNonNegativeInteger( -10.0 ); + * // returns false + */ + isNonNegativeInteger: typeof isNonNegativeInteger; + + /** + * Tests if a finite double-precision floating-point number is a nonpositive integer. + * + * ## Notes + * + * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. + * - The function does not distinguish between positive and negative zero. + * + * @param x - value to test + * @returns boolean indicating whether the value is a nonpositive integer + * + * @example + * var bool = ns.isNonPositiveInteger( -1.0 ); + * // returns true + * + * @example + * var bool = ns.isNonPositiveInteger( 0.0 ); + * // returns true + * + * @example + * var bool = ns.isNonPositiveInteger( 10.0 ); + * // returns false + */ + isNonPositiveInteger: typeof isNonPositiveInteger; + + /** + * Tests if a finite numeric value is an odd number. + * + * ## Notes + * + * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. + * + * @param x - value to test + * @returns boolean indicating whether the value is an odd number + * + * @example + * var bool = ns.isOdd( 5.0 ); + * // returns true + * + * @example + * var bool = ns.isOdd( -2.0 ); + * // returns false + * + * @example + * var bool = ns.isOdd( 0.0 ); + * // returns false + * + * @example + * var bool = ns.isOdd( NaN ); + * // returns false + */ + isOdd: typeof isOdd; + + /** + * Tests if a finite double-precision floating-point number is a positive integer. + * + * ## Notes + * + * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. + * + * @param x - value to test + * @returns boolean indicating whether the value is a positive integer + * + * @example + * var bool = ns.isPositiveInteger( 1.0 ); + * // returns true + * + * @example + * var bool = ns.isPositiveInteger( 0.0 ); + * // returns false + * + * @example + * var bool = ns.isPositiveInteger( -10.0 ); + * // returns false + */ + isPositiveInteger: typeof isPositiveInteger; + + /** + * Tests if a double-precision floating-point numeric value is positive zero. + * + * @param x - value to test + * @returns boolean indicating whether the value is positive zero + * + * @example + * var bool = ns.isPositiveZero( 0.0 ); + * // returns true + * + * @example + * var bool = ns.isPositiveZero( -0.0 ); + * // returns false + */ + isPositiveZero: typeof isPositiveZero; + + /** + * Tests if a single-precision floating-point numeric value is positive zero. + * + * @param x - value to test + * @returns boolean indicating whether the value is positive zero + * + * @example + * var bool = ns.isPositiveZerof( 0.0 ); + * // returns true + * + * @example + * var bool = ns.isPositiveZerof( -0.0 ); + * // returns false + */ + isPositiveZerof: typeof isPositiveZerof; + + /** + * Tests if a number is prime. + * + * @param x - value to test + * @returns boolean indicating whether the value is a prime number + * + * @example + * var bool = ns.isPrime( 11.0 ); + * // returns true + * + * @example + * var bool = ns.isPrime( 3.14 ); + * // returns false + */ + isPrime: typeof isPrime; + + /** + * Tests if a numeric value is a probability. + * + * ## Notes + * + * - A probability is defined as a numeric value on the closed interval `[0,1]`. + * + * @param x - value to test + * @returns boolean indicating whether the value is a probability + * + * @example + * var bool = ns.isProbability( 0.5 ); + * // returns true + * + * @example + * var bool = ns.isProbability( 3.14 ); + * // returns false + * + * @example + * var bool = ns.isProbability( NaN ); + * // returns false + */ + isProbability: typeof isProbability; + + /** + * Tests if a finite double-precision floating-point number is a safe integer. + * + * ## Notes + * + * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. + * + * @param x - value to test + * @returns boolean indicating whether the value is a safe integer + * + * @example + * var bool = ns.isSafeInteger( 1.0 ); + * // returns true + * + * @example + * var bool = ns.isSafeInteger( 2.0e200 ); + * // returns false + * + * @example + * var bool = ns.isSafeInteger( 3.14 ); + * // returns false + */ + isSafeInteger: typeof isSafeInteger; + + /** + * Tests whether an unsigned integer is a power of 2. + * + * @param x - value to test + * @returns boolean indicating whether a value is a power of 2 + * + * @example + * var bool = ns.isPow2Uint32( 2 ); + * // returns true + * + * @example + * var bool = ns.isPow2Uint32( 5 ); + * // returns false + */ + isPow2Uint32: typeof isPow2Uint32; +} + +/** +* Base mathematical assertion utilities. +*/ +declare var ns: Namespace; + + +// EXPORTS // + +export = ns; diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..517bbf4 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2022 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var y=s,w={};y(w,"isEvenInt32",e),y(w,"isOddInt32",t),y(w,"isComposite",i),y(w,"isCoprime",r),y(w,"isEven",n),y(w,"isFinite",d),y(w,"isFinitef",m),y(w,"isInfinite",a),y(w,"isInfinitef",o),y(w,"isInteger",j),y(w,"isnan",h),y(w,"isnanf",l),y(w,"isNegativeInteger",p),y(w,"isNegativeZero",f),y(w,"isNegativeZerof",b),y(w,"isNonNegativeInteger",v),y(w,"isNonPositiveInteger",g),y(w,"isOdd",x),y(w,"isPositiveInteger",c),y(w,"isPositiveZero",u),y(w,"isPositiveZerof",I),y(w,"isPrime",P),y(w,"isProbability",N),y(w,"isSafeInteger",z),y(w,"isPow2Uint32",Z);var C=w;export{C as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..5909ebd --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"],"names":["setReadOnly","require$$0","ns","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6","require$$7","require$$8","require$$9","require$$10","require$$11","require$$12","require$$13","require$$14","require$$15","require$$16","require$$17","require$$18","require$$19","require$$20","require$$21","require$$22","require$$23","require$$24","require$$25","lib"],"mappings":";;85KA0BA,IAAAA,EAAAC,EAUAC,EAAA,GASAF,EAAAE,EAAA,cAAAC,GASAH,EAAAE,EAAA,aAAAE,GASAJ,EAAAE,EAAA,cAAAG,GASAL,EAAAE,EAAA,YAAAI,GASAN,EAAAE,EAAA,SAAAK,GASAP,EAAAE,EAAA,WAAAM,GASAR,EAAAE,EAAA,YAAAO,GASAT,EAAAE,EAAA,aAAAQ,GASAV,EAAAE,EAAA,cAAAS,GASAX,EAAAE,EAAA,YAAAU,GASAZ,EAAAE,EAAA,QAAAW,GASAb,EAAAE,EAAA,SAAAY,GASAd,EAAAE,EAAA,oBAAAa,GASAf,EAAAE,EAAA,iBAAAc,GASAhB,EAAAE,EAAA,kBAAAe,GASAjB,EAAAE,EAAA,uBAAAgB,GASAlB,EAAAE,EAAA,uBAAAiB,GASAnB,EAAAE,EAAA,QAAAkB,GASApB,EAAAE,EAAA,oBAAAmB,GASArB,EAAAE,EAAA,iBAAAoB,GASAtB,EAAAE,EAAA,kBAAAqB,GASAvB,EAAAE,EAAA,UAAAsB,GASAxB,EAAAE,EAAA,gBAAAuB,GASAzB,EAAAE,EAAA,gBAAAwB,GASA1B,EAAAE,EAAA,eAAAyB,GAKA,IAAAC,EAAA1B"} \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..a85ca11 --- /dev/null +++ b/package.json @@ -0,0 +1,46 @@ +{ + "name": "@stdlib/math-base-assert", + "version": "0.0.0", + "description": "Base mathematical assertion utilities.", + "license": "Apache-2.0", + "type": "module", + "main": "./index.mjs", + "homepage": "https://stdlib.io", + "repository": { + "type": "git", + "url": "git://github.com/stdlib-js/math-base-assert.git" + }, + "bugs": { + "url": "https://github.com/stdlib-js/stdlib/issues" + }, + "keywords": [ + "stdlib", + "stdmath", + "standard", + "library", + "std", + "lib", + "mathematics", + "math", + "base", + "basic", + "utilities", + "utility", + "utils", + "util", + "assertions", + "assertion", + "assert", + "check", + "validate", + "valid", + "is", + "isvalid", + "type", + "test" + ], + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/athan" + } +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..88822d9 --- /dev/null +++ b/stats.html @@ -0,0 +1,2689 @@ + + + + + + + + RollUp Visualizer + + + +
+ + + + + From 67c72d8d71f5edca24ce2d2fe723f6985e85fade Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 30 Jun 2022 22:43:30 +0000 Subject: [PATCH 002/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a8846e8..394c54c 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,8 @@ "@stdlib/math-base-assert-is-probability": "^0.0.x", "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x" + "@stdlib/utils-define-read-only-property": "^0.0.x", + "@stdlib/error-tools-fmtprodmsg": "^0.0.x" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.0.x", @@ -142,4 +143,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} +} \ No newline at end of file From 940d53549ef53fc12bca0c96ee9a638667e2c5f2 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 1 Jul 2022 09:54:52 +0000 Subject: [PATCH 003/190] Remove files --- index.d.ts | 582 ----------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 2689 ------------------------------------------------- 4 files changed, 3276 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 4db31dd..0000000 --- a/index.d.ts +++ /dev/null @@ -1,582 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 2.0 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a numeric value is a probability. - * - * ## Notes - * - * - A probability is defined as a numeric value on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index 517bbf4..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2022 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var y=s,w={};y(w,"isEvenInt32",e),y(w,"isOddInt32",t),y(w,"isComposite",i),y(w,"isCoprime",r),y(w,"isEven",n),y(w,"isFinite",d),y(w,"isFinitef",m),y(w,"isInfinite",a),y(w,"isInfinitef",o),y(w,"isInteger",j),y(w,"isnan",h),y(w,"isnanf",l),y(w,"isNegativeInteger",p),y(w,"isNegativeZero",f),y(w,"isNegativeZerof",b),y(w,"isNonNegativeInteger",v),y(w,"isNonPositiveInteger",g),y(w,"isOdd",x),y(w,"isPositiveInteger",c),y(w,"isPositiveZero",u),y(w,"isPositiveZerof",I),y(w,"isPrime",P),y(w,"isProbability",N),y(w,"isSafeInteger",z),y(w,"isPow2Uint32",Z);var C=w;export{C as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index 5909ebd..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"],"names":["setReadOnly","require$$0","ns","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6","require$$7","require$$8","require$$9","require$$10","require$$11","require$$12","require$$13","require$$14","require$$15","require$$16","require$$17","require$$18","require$$19","require$$20","require$$21","require$$22","require$$23","require$$24","require$$25","lib"],"mappings":";;85KA0BA,IAAAA,EAAAC,EAUAC,EAAA,GASAF,EAAAE,EAAA,cAAAC,GASAH,EAAAE,EAAA,aAAAE,GASAJ,EAAAE,EAAA,cAAAG,GASAL,EAAAE,EAAA,YAAAI,GASAN,EAAAE,EAAA,SAAAK,GASAP,EAAAE,EAAA,WAAAM,GASAR,EAAAE,EAAA,YAAAO,GASAT,EAAAE,EAAA,aAAAQ,GASAV,EAAAE,EAAA,cAAAS,GASAX,EAAAE,EAAA,YAAAU,GASAZ,EAAAE,EAAA,QAAAW,GASAb,EAAAE,EAAA,SAAAY,GASAd,EAAAE,EAAA,oBAAAa,GASAf,EAAAE,EAAA,iBAAAc,GASAhB,EAAAE,EAAA,kBAAAe,GASAjB,EAAAE,EAAA,uBAAAgB,GASAlB,EAAAE,EAAA,uBAAAiB,GASAnB,EAAAE,EAAA,QAAAkB,GASApB,EAAAE,EAAA,oBAAAmB,GASArB,EAAAE,EAAA,iBAAAoB,GASAtB,EAAAE,EAAA,kBAAAqB,GASAvB,EAAAE,EAAA,UAAAsB,GASAxB,EAAAE,EAAA,gBAAAuB,GASAzB,EAAAE,EAAA,gBAAAwB,GASA1B,EAAAE,EAAA,eAAAyB,GAKA,IAAAC,EAAA1B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 88822d9..0000000 --- a/stats.html +++ /dev/null @@ -1,2689 +0,0 @@ - - - - - - - - RollUp Visualizer - - - -
- - - - - From 518124fb21822ce3a96f0e1331f96b4f5271914f Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 1 Jul 2022 09:55:51 +0000 Subject: [PATCH 004/190] Auto-generated commit --- .editorconfig | 181 -- .eslintrc.js | 1 - .gitattributes | 33 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 62 - .github/workflows/cancel.yml | 56 - .github/workflows/close_pull_requests.yml | 44 - .github/workflows/examples.yml | 62 - .github/workflows/npm_downloads.yml | 108 - .github/workflows/productionize.yml | 681 ------ .github/workflows/publish.yml | 157 -- .github/workflows/test.yml | 92 - .github/workflows/test_bundles.yml | 180 -- .github/workflows/test_coverage.yml | 123 - .github/workflows/test_install.yml | 83 - .gitignore | 178 -- .npmignore | 227 -- .npmrc | 28 - CHANGELOG.md | 5 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 ---- README.md | 91 +- branches.md | 53 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 267 -- package.json | 106 +- stats.html | 2689 +++++++++++++++++++++ test/test.js | 40 - 34 files changed, 2742 insertions(+), 3411 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0fd4d6c..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 7212d81..0000000 --- a/.gitattributes +++ /dev/null @@ -1,33 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 45ac88d..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2022-06-30T21:54:54.984Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 29bf533..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index a7a7f51..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,56 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - uses: styfle/cancel-workflow-action@0.9.0 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 550b204..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,44 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: superbrothers/close-pull-request@v3 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 39b1613..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout the repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index 7ca169c..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,108 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '0 8 * * 6' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "::set-output name=package_name::$name" - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "::set-output name=data::$data" - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - uses: actions/upload-artifact@v2 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - uses: distributhor/workflow-webhook@v2 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 128c22e..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,681 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the repository: - push: - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - uses: actions/checkout@v3 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Format error messages: - - name: 'Replace double quotes with single quotes in rewritten format string error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \; - - # Format string literal error messages: - - name: 'Replace double quotes with single quotes in rewritten string literal error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \; - - # Format code: - - name: 'Replace double quotes with single quotes in inserted `require` calls' - run: | - find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \; - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\"/\"@stdlib\/error-tools-fmtprodmsg\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^0.0.x'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "::set-output name=remote-exists::true" - else - echo "::set-output name=remote-exists::false" - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs rm -rf - - git add -A - git commit -m "Remove files" - - git merge -s recursive -X theirs origin/production --allow-unrelated-histories - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch or create new branch tag: - - name: 'Push changes to `deno` branch or create new branch tag' - run: | - SLUG=${{ github.repository }} - VERSION=$(echo ${{ github.ref }} | sed -E -n 's/refs\/tags\/?(v[0-9]+.[0-9]+.[0-9]+).*/\1/p') - if [ -z "$VERSION" ]; then - echo "Workflow job was not triggered by a new tag...." - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - else - echo "Workflow job was triggered by a new tag: $VERSION" - echo "Creating new bundle branch tag of the form $VERSION-deno" - git tag -a $VERSION-deno -m "$VERSION-deno" - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" $VERSION-deno - fi - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "::set-output name=remote-exists::true" - else - echo "::set-output name=remote-exists::false" - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs rm -rf - - git add -A - git commit -m "Remove files" - - git merge -s recursive -X theirs origin/production --allow-unrelated-histories - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "::set-output name=alias::${alias}" - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -133,7 +132,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -195,55 +194,55 @@ Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 43f12ad..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index ea40c37..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import assert = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - assert; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..39508cb --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2022 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var y={};s(y,"isEvenInt32",e),s(y,"isOddInt32",t),s(y,"isComposite",i),s(y,"isCoprime",r),s(y,"isEven",n),s(y,"isFinite",d),s(y,"isFinitef",m),s(y,"isInfinite",a),s(y,"isInfinitef",o),s(y,"isInteger",j),s(y,"isnan",h),s(y,"isnanf",l),s(y,"isNegativeInteger",p),s(y,"isNegativeZero",f),s(y,"isNegativeZerof",b),s(y,"isNonNegativeInteger",v),s(y,"isNonPositiveInteger",g),s(y,"isOdd",x),s(y,"isPositiveInteger",c),s(y,"isPositiveZero",u),s(y,"isPositiveZerof",I),s(y,"isPrime",P),s(y,"isProbability",N),s(y,"isSafeInteger",z),s(y,"isPow2Uint32",Z);export{y as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..ede5f59 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeInteger","isNonPositiveInteger","isOdd","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;85KAoCA,IAAAA,EAAA,GAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,oBAAAc,GAUAb,EAAAD,EAAA,iBAAAe,GAUAd,EAAAD,EAAA,kBAAAgB,GAUAf,EAAAD,EAAA,uBAAAiB,GAUAhB,EAAAD,EAAA,uBAAAkB,GAUAjB,EAAAD,EAAA,QAAAmB,GAUAlB,EAAAD,EAAA,oBAAAoB,GAUAnB,EAAAD,EAAA,iBAAAqB,GAUApB,EAAAD,EAAA,kBAAAsB,GAUArB,EAAAD,EAAA,UAAAuB,GAUAtB,EAAAD,EAAA,gBAAAwB,GAUAvB,EAAAD,EAAA,gBAAAyB,GAUAxB,EAAAD,EAAA,eAAA0B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 406bc7b..0000000 --- a/lib/index.js +++ /dev/null @@ -1,267 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 394c54c..af7be53 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.0.6", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,84 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.0.x", - "@stdlib/math-base-assert-int32-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-composite": "^0.0.x", - "@stdlib/math-base-assert-is-coprime": "^0.0.x", - "@stdlib/math-base-assert-is-even": "^0.0.x", - "@stdlib/math-base-assert-is-finite": "^0.0.x", - "@stdlib/math-base-assert-is-finitef": "^0.0.x", - "@stdlib/math-base-assert-is-infinite": "^0.0.x", - "@stdlib/math-base-assert-is-infinitef": "^0.0.x", - "@stdlib/math-base-assert-is-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nan": "^0.0.x", - "@stdlib/math-base-assert-is-nanf": "^0.0.x", - "@stdlib/math-base-assert-is-negative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zero": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-positive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zero": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-prime": "^0.0.x", - "@stdlib/math-base-assert-is-probability": "^0.0.x", - "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x", - "@stdlib/error-tools-fmtprodmsg": "^0.0.x" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.0.x", - "@stdlib/bench": "^0.0.x", - "@stdlib/constants-float32-max": "^0.0.x", - "@stdlib/constants-float32-ninf": "^0.0.x", - "@stdlib/constants-float32-pinf": "^0.0.x", - "@stdlib/constants-float32-smallest-subnormal": "^0.0.x", - "@stdlib/constants-float64-max": "^0.0.x", - "@stdlib/constants-float64-max-safe-integer": "^0.0.x", - "@stdlib/constants-float64-min-safe-integer": "^0.0.x", - "@stdlib/constants-float64-ninf": "^0.0.x", - "@stdlib/constants-float64-pinf": "^0.0.x", - "@stdlib/constants-float64-smallest-subnormal": "^0.0.x", - "@stdlib/constants-int32-max": "^0.0.x", - "@stdlib/datasets-primes-100k": "^0.0.x", - "@stdlib/math-base-special-floor": "^0.0.x", - "@stdlib/math-base-special-gcd": "^0.0.x", - "@stdlib/math-base-special-log10": "^0.0.x", - "@stdlib/math-base-special-log2": "^0.0.x", - "@stdlib/math-base-special-pow": "^0.0.x", - "@stdlib/math-base-special-round": "^0.0.x", - "@stdlib/math-base-special-sqrt": "^0.0.x", - "@stdlib/math-base-special-trunc": "^0.0.x", - "@stdlib/number-ctor": "^0.0.x", - "@stdlib/number-float64-base-to-float32": "^0.0.x", - "@stdlib/number-float64-base-to-uint32": "^0.0.x", - "@stdlib/random-base-discrete-uniform": "^0.0.x", - "@stdlib/random-base-randu": "^0.0.x", - "@stdlib/utils-keys": "^0.0.x", - "@stdlib/utils-try-require": "^0.0.x", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-spec": "5.x.x" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -143,4 +43,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..53e71e3 --- /dev/null +++ b/stats.html @@ -0,0 +1,2689 @@ + + + + + + + + RollUp Visualizer + + + +
+ + + + + diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 882f197..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.equal( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From db3c8d827fc9012d1db39bd47bfb286a01cdf627 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 1 Jul 2022 16:12:36 +0000 Subject: [PATCH 005/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a8846e8..394c54c 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,8 @@ "@stdlib/math-base-assert-is-probability": "^0.0.x", "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x" + "@stdlib/utils-define-read-only-property": "^0.0.x", + "@stdlib/error-tools-fmtprodmsg": "^0.0.x" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.0.x", @@ -142,4 +143,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} +} \ No newline at end of file From 6f28c95ac713cc27b9fc0dd07a265cc977e75fcf Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 2 Jul 2022 08:46:19 +0000 Subject: [PATCH 006/190] Remove files --- index.d.ts | 582 ----------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 2689 ------------------------------------------------- 4 files changed, 3276 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 4db31dd..0000000 --- a/index.d.ts +++ /dev/null @@ -1,582 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 2.0 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a numeric value is a probability. - * - * ## Notes - * - * - A probability is defined as a numeric value on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index 39508cb..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2022 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var y={};s(y,"isEvenInt32",e),s(y,"isOddInt32",t),s(y,"isComposite",i),s(y,"isCoprime",r),s(y,"isEven",n),s(y,"isFinite",d),s(y,"isFinitef",m),s(y,"isInfinite",a),s(y,"isInfinitef",o),s(y,"isInteger",j),s(y,"isnan",h),s(y,"isnanf",l),s(y,"isNegativeInteger",p),s(y,"isNegativeZero",f),s(y,"isNegativeZerof",b),s(y,"isNonNegativeInteger",v),s(y,"isNonPositiveInteger",g),s(y,"isOdd",x),s(y,"isPositiveInteger",c),s(y,"isPositiveZero",u),s(y,"isPositiveZerof",I),s(y,"isPrime",P),s(y,"isProbability",N),s(y,"isSafeInteger",z),s(y,"isPow2Uint32",Z);export{y as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index ede5f59..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeInteger","isNonPositiveInteger","isOdd","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;85KAoCA,IAAAA,EAAA,GAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,oBAAAc,GAUAb,EAAAD,EAAA,iBAAAe,GAUAd,EAAAD,EAAA,kBAAAgB,GAUAf,EAAAD,EAAA,uBAAAiB,GAUAhB,EAAAD,EAAA,uBAAAkB,GAUAjB,EAAAD,EAAA,QAAAmB,GAUAlB,EAAAD,EAAA,oBAAAoB,GAUAnB,EAAAD,EAAA,iBAAAqB,GAUApB,EAAAD,EAAA,kBAAAsB,GAUArB,EAAAD,EAAA,UAAAuB,GAUAtB,EAAAD,EAAA,gBAAAwB,GAUAvB,EAAAD,EAAA,gBAAAyB,GAUAxB,EAAAD,EAAA,eAAA0B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 53e71e3..0000000 --- a/stats.html +++ /dev/null @@ -1,2689 +0,0 @@ - - - - - - - - RollUp Visualizer - - - -
- - - - - From 7b85b2208abefe0a40af8d744bf8d4d14989ad4e Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 2 Jul 2022 08:47:25 +0000 Subject: [PATCH 007/190] Auto-generated commit --- .editorconfig | 181 -- .eslintrc.js | 1 - .gitattributes | 33 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 62 - .github/workflows/cancel.yml | 56 - .github/workflows/close_pull_requests.yml | 44 - .github/workflows/examples.yml | 62 - .github/workflows/npm_downloads.yml | 108 - .github/workflows/productionize.yml | 681 ------ .github/workflows/publish.yml | 157 -- .github/workflows/test.yml | 92 - .github/workflows/test_bundles.yml | 180 -- .github/workflows/test_coverage.yml | 123 - .github/workflows/test_install.yml | 83 - .gitignore | 178 -- .npmignore | 227 -- .npmrc | 28 - CHANGELOG.md | 5 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 ---- README.md | 91 +- branches.md | 53 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 267 -- package.json | 106 +- stats.html | 2689 +++++++++++++++++++++ test/test.js | 40 - 34 files changed, 2742 insertions(+), 3411 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0fd4d6c..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 7212d81..0000000 --- a/.gitattributes +++ /dev/null @@ -1,33 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index f222a3f..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2022-07-01T01:03:54.117Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 29bf533..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index a7a7f51..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,56 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - uses: styfle/cancel-workflow-action@0.9.0 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 550b204..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,44 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: superbrothers/close-pull-request@v3 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 39b1613..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout the repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index 7ca169c..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,108 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '0 8 * * 6' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "::set-output name=package_name::$name" - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "::set-output name=data::$data" - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - uses: actions/upload-artifact@v2 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - uses: distributhor/workflow-webhook@v2 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 128c22e..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,681 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the repository: - push: - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - uses: actions/checkout@v3 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Format error messages: - - name: 'Replace double quotes with single quotes in rewritten format string error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \; - - # Format string literal error messages: - - name: 'Replace double quotes with single quotes in rewritten string literal error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \; - - # Format code: - - name: 'Replace double quotes with single quotes in inserted `require` calls' - run: | - find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \; - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\"/\"@stdlib\/error-tools-fmtprodmsg\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^0.0.x'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "::set-output name=remote-exists::true" - else - echo "::set-output name=remote-exists::false" - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs rm -rf - - git add -A - git commit -m "Remove files" - - git merge -s recursive -X theirs origin/production --allow-unrelated-histories - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch or create new branch tag: - - name: 'Push changes to `deno` branch or create new branch tag' - run: | - SLUG=${{ github.repository }} - VERSION=$(echo ${{ github.ref }} | sed -E -n 's/refs\/tags\/?(v[0-9]+.[0-9]+.[0-9]+).*/\1/p') - if [ -z "$VERSION" ]; then - echo "Workflow job was not triggered by a new tag...." - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - else - echo "Workflow job was triggered by a new tag: $VERSION" - echo "Creating new bundle branch tag of the form $VERSION-deno" - git tag -a $VERSION-deno -m "$VERSION-deno" - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" $VERSION-deno - fi - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "::set-output name=remote-exists::true" - else - echo "::set-output name=remote-exists::false" - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs rm -rf - - git add -A - git commit -m "Remove files" - - git merge -s recursive -X theirs origin/production --allow-unrelated-histories - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "::set-output name=alias::${alias}" - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -133,7 +132,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -195,55 +194,55 @@ Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 43f12ad..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index ea40c37..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import assert = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - assert; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..39508cb --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2022 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var y={};s(y,"isEvenInt32",e),s(y,"isOddInt32",t),s(y,"isComposite",i),s(y,"isCoprime",r),s(y,"isEven",n),s(y,"isFinite",d),s(y,"isFinitef",m),s(y,"isInfinite",a),s(y,"isInfinitef",o),s(y,"isInteger",j),s(y,"isnan",h),s(y,"isnanf",l),s(y,"isNegativeInteger",p),s(y,"isNegativeZero",f),s(y,"isNegativeZerof",b),s(y,"isNonNegativeInteger",v),s(y,"isNonPositiveInteger",g),s(y,"isOdd",x),s(y,"isPositiveInteger",c),s(y,"isPositiveZero",u),s(y,"isPositiveZerof",I),s(y,"isPrime",P),s(y,"isProbability",N),s(y,"isSafeInteger",z),s(y,"isPow2Uint32",Z);export{y as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..ede5f59 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeInteger","isNonPositiveInteger","isOdd","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;85KAoCA,IAAAA,EAAA,GAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,oBAAAc,GAUAb,EAAAD,EAAA,iBAAAe,GAUAd,EAAAD,EAAA,kBAAAgB,GAUAf,EAAAD,EAAA,uBAAAiB,GAUAhB,EAAAD,EAAA,uBAAAkB,GAUAjB,EAAAD,EAAA,QAAAmB,GAUAlB,EAAAD,EAAA,oBAAAoB,GAUAnB,EAAAD,EAAA,iBAAAqB,GAUApB,EAAAD,EAAA,kBAAAsB,GAUArB,EAAAD,EAAA,UAAAuB,GAUAtB,EAAAD,EAAA,gBAAAwB,GAUAvB,EAAAD,EAAA,gBAAAyB,GAUAxB,EAAAD,EAAA,eAAA0B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 406bc7b..0000000 --- a/lib/index.js +++ /dev/null @@ -1,267 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 394c54c..af7be53 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.0.6", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,84 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.0.x", - "@stdlib/math-base-assert-int32-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-composite": "^0.0.x", - "@stdlib/math-base-assert-is-coprime": "^0.0.x", - "@stdlib/math-base-assert-is-even": "^0.0.x", - "@stdlib/math-base-assert-is-finite": "^0.0.x", - "@stdlib/math-base-assert-is-finitef": "^0.0.x", - "@stdlib/math-base-assert-is-infinite": "^0.0.x", - "@stdlib/math-base-assert-is-infinitef": "^0.0.x", - "@stdlib/math-base-assert-is-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nan": "^0.0.x", - "@stdlib/math-base-assert-is-nanf": "^0.0.x", - "@stdlib/math-base-assert-is-negative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zero": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-positive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zero": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-prime": "^0.0.x", - "@stdlib/math-base-assert-is-probability": "^0.0.x", - "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x", - "@stdlib/error-tools-fmtprodmsg": "^0.0.x" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.0.x", - "@stdlib/bench": "^0.0.x", - "@stdlib/constants-float32-max": "^0.0.x", - "@stdlib/constants-float32-ninf": "^0.0.x", - "@stdlib/constants-float32-pinf": "^0.0.x", - "@stdlib/constants-float32-smallest-subnormal": "^0.0.x", - "@stdlib/constants-float64-max": "^0.0.x", - "@stdlib/constants-float64-max-safe-integer": "^0.0.x", - "@stdlib/constants-float64-min-safe-integer": "^0.0.x", - "@stdlib/constants-float64-ninf": "^0.0.x", - "@stdlib/constants-float64-pinf": "^0.0.x", - "@stdlib/constants-float64-smallest-subnormal": "^0.0.x", - "@stdlib/constants-int32-max": "^0.0.x", - "@stdlib/datasets-primes-100k": "^0.0.x", - "@stdlib/math-base-special-floor": "^0.0.x", - "@stdlib/math-base-special-gcd": "^0.0.x", - "@stdlib/math-base-special-log10": "^0.0.x", - "@stdlib/math-base-special-log2": "^0.0.x", - "@stdlib/math-base-special-pow": "^0.0.x", - "@stdlib/math-base-special-round": "^0.0.x", - "@stdlib/math-base-special-sqrt": "^0.0.x", - "@stdlib/math-base-special-trunc": "^0.0.x", - "@stdlib/number-ctor": "^0.0.x", - "@stdlib/number-float64-base-to-float32": "^0.0.x", - "@stdlib/number-float64-base-to-uint32": "^0.0.x", - "@stdlib/random-base-discrete-uniform": "^0.0.x", - "@stdlib/random-base-randu": "^0.0.x", - "@stdlib/utils-keys": "^0.0.x", - "@stdlib/utils-try-require": "^0.0.x", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-spec": "5.x.x" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -143,4 +43,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..1a6934a --- /dev/null +++ b/stats.html @@ -0,0 +1,2689 @@ + + + + + + + + RollUp Visualizer + + + +
+ + + + + diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 882f197..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.equal( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 4ad4121bb8f1ad531cdb157a9b3d5cd7172e4146 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 4 Jul 2022 17:03:36 +0000 Subject: [PATCH 008/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a8846e8..394c54c 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,8 @@ "@stdlib/math-base-assert-is-probability": "^0.0.x", "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x" + "@stdlib/utils-define-read-only-property": "^0.0.x", + "@stdlib/error-tools-fmtprodmsg": "^0.0.x" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.0.x", @@ -142,4 +143,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} +} \ No newline at end of file From 892e00f0d4c5b6badcc509a4b3bb4f4f0edfc334 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 4 Jul 2022 18:08:22 +0000 Subject: [PATCH 009/190] Remove files --- index.d.ts | 582 ----------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 2689 ------------------------------------------------- 4 files changed, 3276 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 4db31dd..0000000 --- a/index.d.ts +++ /dev/null @@ -1,582 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 2.0 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a numeric value is a probability. - * - * ## Notes - * - * - A probability is defined as a numeric value on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index 39508cb..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2022 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var y={};s(y,"isEvenInt32",e),s(y,"isOddInt32",t),s(y,"isComposite",i),s(y,"isCoprime",r),s(y,"isEven",n),s(y,"isFinite",d),s(y,"isFinitef",m),s(y,"isInfinite",a),s(y,"isInfinitef",o),s(y,"isInteger",j),s(y,"isnan",h),s(y,"isnanf",l),s(y,"isNegativeInteger",p),s(y,"isNegativeZero",f),s(y,"isNegativeZerof",b),s(y,"isNonNegativeInteger",v),s(y,"isNonPositiveInteger",g),s(y,"isOdd",x),s(y,"isPositiveInteger",c),s(y,"isPositiveZero",u),s(y,"isPositiveZerof",I),s(y,"isPrime",P),s(y,"isProbability",N),s(y,"isSafeInteger",z),s(y,"isPow2Uint32",Z);export{y as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index ede5f59..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeInteger","isNonPositiveInteger","isOdd","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;85KAoCA,IAAAA,EAAA,GAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,oBAAAc,GAUAb,EAAAD,EAAA,iBAAAe,GAUAd,EAAAD,EAAA,kBAAAgB,GAUAf,EAAAD,EAAA,uBAAAiB,GAUAhB,EAAAD,EAAA,uBAAAkB,GAUAjB,EAAAD,EAAA,QAAAmB,GAUAlB,EAAAD,EAAA,oBAAAoB,GAUAnB,EAAAD,EAAA,iBAAAqB,GAUApB,EAAAD,EAAA,kBAAAsB,GAUArB,EAAAD,EAAA,UAAAuB,GAUAtB,EAAAD,EAAA,gBAAAwB,GAUAvB,EAAAD,EAAA,gBAAAyB,GAUAxB,EAAAD,EAAA,eAAA0B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 1a6934a..0000000 --- a/stats.html +++ /dev/null @@ -1,2689 +0,0 @@ - - - - - - - - RollUp Visualizer - - - -
- - - - - From f227d6f9124a5a34ce323711f0d49f62109e753f Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 4 Jul 2022 18:09:29 +0000 Subject: [PATCH 010/190] Auto-generated commit --- .editorconfig | 181 -- .eslintrc.js | 1 - .gitattributes | 33 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 62 - .github/workflows/cancel.yml | 56 - .github/workflows/close_pull_requests.yml | 44 - .github/workflows/examples.yml | 62 - .github/workflows/npm_downloads.yml | 108 - .github/workflows/productionize.yml | 687 ------ .github/workflows/publish.yml | 117 - .github/workflows/test.yml | 92 - .github/workflows/test_bundles.yml | 180 -- .github/workflows/test_coverage.yml | 123 - .github/workflows/test_install.yml | 83 - .gitignore | 178 -- .npmignore | 227 -- .npmrc | 28 - CHANGELOG.md | 5 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 ---- README.md | 91 +- branches.md | 53 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 267 -- package.json | 106 +- stats.html | 2689 +++++++++++++++++++++ test/test.js | 40 - 33 files changed, 2742 insertions(+), 3376 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0fd4d6c..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 7212d81..0000000 --- a/.gitattributes +++ /dev/null @@ -1,33 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 29bf533..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index a7a7f51..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,56 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - uses: styfle/cancel-workflow-action@0.9.0 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 550b204..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,44 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: superbrothers/close-pull-request@v3 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 39b1613..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout the repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index 7ca169c..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,108 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '0 8 * * 6' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "::set-output name=package_name::$name" - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "::set-output name=data::$data" - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - uses: actions/upload-artifact@v2 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - uses: distributhor/workflow-webhook@v2 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 6726965..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,687 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the repository: - push: - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - uses: actions/checkout@v3 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Format error messages: - - name: 'Replace double quotes with single quotes in rewritten format string error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \; - - # Format string literal error messages: - - name: 'Replace double quotes with single quotes in rewritten string literal error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \; - - # Format code: - - name: 'Replace double quotes with single quotes in inserted `require` calls' - run: | - find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \; - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\"/\"@stdlib\/error-tools-fmtprodmsg\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^0.0.x'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "::set-output name=remote-exists::true" - else - echo "::set-output name=remote-exists::false" - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch or create new branch tag: - - name: 'Push changes to `deno` branch or create new branch tag' - run: | - SLUG=${{ github.repository }} - VERSION=$(echo ${{ github.ref }} | sed -E -n 's/refs\/tags\/?(v[0-9]+.[0-9]+.[0-9]+).*/\1/p') - if [ -z "$VERSION" ]; then - echo "Workflow job was not triggered by a new tag...." - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - else - echo "Workflow job was triggered by a new tag: $VERSION" - echo "Creating new bundle branch tag of the form $VERSION-deno" - git tag -a $VERSION-deno -m "$VERSION-deno" - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" $VERSION-deno - fi - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "::set-output name=remote-exists::true" - else - echo "::set-output name=remote-exists::false" - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "::set-output name=alias::${alias}" - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -133,7 +132,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -195,55 +194,55 @@ Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 43f12ad..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index ea40c37..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import assert = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - assert; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..39508cb --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2022 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var y={};s(y,"isEvenInt32",e),s(y,"isOddInt32",t),s(y,"isComposite",i),s(y,"isCoprime",r),s(y,"isEven",n),s(y,"isFinite",d),s(y,"isFinitef",m),s(y,"isInfinite",a),s(y,"isInfinitef",o),s(y,"isInteger",j),s(y,"isnan",h),s(y,"isnanf",l),s(y,"isNegativeInteger",p),s(y,"isNegativeZero",f),s(y,"isNegativeZerof",b),s(y,"isNonNegativeInteger",v),s(y,"isNonPositiveInteger",g),s(y,"isOdd",x),s(y,"isPositiveInteger",c),s(y,"isPositiveZero",u),s(y,"isPositiveZerof",I),s(y,"isPrime",P),s(y,"isProbability",N),s(y,"isSafeInteger",z),s(y,"isPow2Uint32",Z);export{y as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..ede5f59 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeInteger","isNonPositiveInteger","isOdd","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;85KAoCA,IAAAA,EAAA,GAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,oBAAAc,GAUAb,EAAAD,EAAA,iBAAAe,GAUAd,EAAAD,EAAA,kBAAAgB,GAUAf,EAAAD,EAAA,uBAAAiB,GAUAhB,EAAAD,EAAA,uBAAAkB,GAUAjB,EAAAD,EAAA,QAAAmB,GAUAlB,EAAAD,EAAA,oBAAAoB,GAUAnB,EAAAD,EAAA,iBAAAqB,GAUApB,EAAAD,EAAA,kBAAAsB,GAUArB,EAAAD,EAAA,UAAAuB,GAUAtB,EAAAD,EAAA,gBAAAwB,GAUAvB,EAAAD,EAAA,gBAAAyB,GAUAxB,EAAAD,EAAA,eAAA0B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 406bc7b..0000000 --- a/lib/index.js +++ /dev/null @@ -1,267 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 394c54c..af7be53 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.0.6", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,84 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.0.x", - "@stdlib/math-base-assert-int32-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-composite": "^0.0.x", - "@stdlib/math-base-assert-is-coprime": "^0.0.x", - "@stdlib/math-base-assert-is-even": "^0.0.x", - "@stdlib/math-base-assert-is-finite": "^0.0.x", - "@stdlib/math-base-assert-is-finitef": "^0.0.x", - "@stdlib/math-base-assert-is-infinite": "^0.0.x", - "@stdlib/math-base-assert-is-infinitef": "^0.0.x", - "@stdlib/math-base-assert-is-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nan": "^0.0.x", - "@stdlib/math-base-assert-is-nanf": "^0.0.x", - "@stdlib/math-base-assert-is-negative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zero": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-positive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zero": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-prime": "^0.0.x", - "@stdlib/math-base-assert-is-probability": "^0.0.x", - "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x", - "@stdlib/error-tools-fmtprodmsg": "^0.0.x" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.0.x", - "@stdlib/bench": "^0.0.x", - "@stdlib/constants-float32-max": "^0.0.x", - "@stdlib/constants-float32-ninf": "^0.0.x", - "@stdlib/constants-float32-pinf": "^0.0.x", - "@stdlib/constants-float32-smallest-subnormal": "^0.0.x", - "@stdlib/constants-float64-max": "^0.0.x", - "@stdlib/constants-float64-max-safe-integer": "^0.0.x", - "@stdlib/constants-float64-min-safe-integer": "^0.0.x", - "@stdlib/constants-float64-ninf": "^0.0.x", - "@stdlib/constants-float64-pinf": "^0.0.x", - "@stdlib/constants-float64-smallest-subnormal": "^0.0.x", - "@stdlib/constants-int32-max": "^0.0.x", - "@stdlib/datasets-primes-100k": "^0.0.x", - "@stdlib/math-base-special-floor": "^0.0.x", - "@stdlib/math-base-special-gcd": "^0.0.x", - "@stdlib/math-base-special-log10": "^0.0.x", - "@stdlib/math-base-special-log2": "^0.0.x", - "@stdlib/math-base-special-pow": "^0.0.x", - "@stdlib/math-base-special-round": "^0.0.x", - "@stdlib/math-base-special-sqrt": "^0.0.x", - "@stdlib/math-base-special-trunc": "^0.0.x", - "@stdlib/number-ctor": "^0.0.x", - "@stdlib/number-float64-base-to-float32": "^0.0.x", - "@stdlib/number-float64-base-to-uint32": "^0.0.x", - "@stdlib/random-base-discrete-uniform": "^0.0.x", - "@stdlib/random-base-randu": "^0.0.x", - "@stdlib/utils-keys": "^0.0.x", - "@stdlib/utils-try-require": "^0.0.x", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-spec": "5.x.x" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -143,4 +43,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..30065ec --- /dev/null +++ b/stats.html @@ -0,0 +1,2689 @@ + + + + + + + + RollUp Visualizer + + + +
+ + + + + diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 882f197..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.equal( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 6f08ec8f104bb00c6eef890bccb92a117180381a Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 1 Aug 2022 03:47:18 +0000 Subject: [PATCH 011/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a8846e8..394c54c 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,8 @@ "@stdlib/math-base-assert-is-probability": "^0.0.x", "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x" + "@stdlib/utils-define-read-only-property": "^0.0.x", + "@stdlib/error-tools-fmtprodmsg": "^0.0.x" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.0.x", @@ -142,4 +143,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} +} \ No newline at end of file From 21e2e1315f5d584bba84fee5e5d801a307f8feb3 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 1 Aug 2022 17:42:33 +0000 Subject: [PATCH 012/190] Remove files --- index.d.ts | 582 ----------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 2689 ------------------------------------------------- 4 files changed, 3276 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 4db31dd..0000000 --- a/index.d.ts +++ /dev/null @@ -1,582 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 2.0 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a numeric value is a probability. - * - * ## Notes - * - * - A probability is defined as a numeric value on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index 39508cb..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2022 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var y={};s(y,"isEvenInt32",e),s(y,"isOddInt32",t),s(y,"isComposite",i),s(y,"isCoprime",r),s(y,"isEven",n),s(y,"isFinite",d),s(y,"isFinitef",m),s(y,"isInfinite",a),s(y,"isInfinitef",o),s(y,"isInteger",j),s(y,"isnan",h),s(y,"isnanf",l),s(y,"isNegativeInteger",p),s(y,"isNegativeZero",f),s(y,"isNegativeZerof",b),s(y,"isNonNegativeInteger",v),s(y,"isNonPositiveInteger",g),s(y,"isOdd",x),s(y,"isPositiveInteger",c),s(y,"isPositiveZero",u),s(y,"isPositiveZerof",I),s(y,"isPrime",P),s(y,"isProbability",N),s(y,"isSafeInteger",z),s(y,"isPow2Uint32",Z);export{y as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index ede5f59..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeInteger","isNonPositiveInteger","isOdd","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;85KAoCA,IAAAA,EAAA,GAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,oBAAAc,GAUAb,EAAAD,EAAA,iBAAAe,GAUAd,EAAAD,EAAA,kBAAAgB,GAUAf,EAAAD,EAAA,uBAAAiB,GAUAhB,EAAAD,EAAA,uBAAAkB,GAUAjB,EAAAD,EAAA,QAAAmB,GAUAlB,EAAAD,EAAA,oBAAAoB,GAUAnB,EAAAD,EAAA,iBAAAqB,GAUApB,EAAAD,EAAA,kBAAAsB,GAUArB,EAAAD,EAAA,UAAAuB,GAUAtB,EAAAD,EAAA,gBAAAwB,GAUAvB,EAAAD,EAAA,gBAAAyB,GAUAxB,EAAAD,EAAA,eAAA0B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 30065ec..0000000 --- a/stats.html +++ /dev/null @@ -1,2689 +0,0 @@ - - - - - - - - RollUp Visualizer - - - -
- - - - - From 4946e995873b4cad503cddb83260e76b816b9568 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 1 Aug 2022 17:43:52 +0000 Subject: [PATCH 013/190] Auto-generated commit --- .editorconfig | 181 -- .eslintrc.js | 1 - .gitattributes | 33 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 62 - .github/workflows/cancel.yml | 56 - .github/workflows/close_pull_requests.yml | 44 - .github/workflows/examples.yml | 62 - .github/workflows/npm_downloads.yml | 108 - .github/workflows/productionize.yml | 760 ------ .github/workflows/publish.yml | 117 - .github/workflows/test.yml | 92 - .github/workflows/test_bundles.yml | 180 -- .github/workflows/test_coverage.yml | 123 - .github/workflows/test_install.yml | 83 - .gitignore | 178 -- .npmignore | 227 -- .npmrc | 28 - CHANGELOG.md | 5 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 ---- README.md | 91 +- branches.md | 53 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 267 -- package.json | 106 +- stats.html | 2689 +++++++++++++++++++++ test/test.js | 40 - 34 files changed, 2742 insertions(+), 3450 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0fd4d6c..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 7212d81..0000000 --- a/.gitattributes +++ /dev/null @@ -1,33 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 89252f6..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2022-08-01T01:07:10.343Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 29bf533..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index a7a7f51..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,56 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - uses: styfle/cancel-workflow-action@0.9.0 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 550b204..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,44 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: superbrothers/close-pull-request@v3 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 39b1613..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout the repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index 7ca169c..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,108 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '0 8 * * 6' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "::set-output name=package_name::$name" - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "::set-output name=data::$data" - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - uses: actions/upload-artifact@v2 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - uses: distributhor/workflow-webhook@v2 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 5094681..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,760 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - uses: actions/checkout@v3 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Format error messages: - - name: 'Replace double quotes with single quotes in rewritten format string error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \; - - # Format string literal error messages: - - name: 'Replace double quotes with single quotes in rewritten string literal error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \; - - # Format code: - - name: 'Replace double quotes with single quotes in inserted `require` calls' - run: | - find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \; - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\"/\"@stdlib\/error-tools-fmtprodmsg\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^0.0.x'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "::set-output name=remote-exists::true" - else - echo "::set-output name=remote-exists::false" - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "::set-output name=remote-exists::true" - else - echo "::set-output name=remote-exists::false" - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "::set-output name=alias::${alias}" - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -133,7 +132,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -195,55 +194,55 @@ Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 43f12ad..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index ea40c37..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import assert = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - assert; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..39508cb --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2022 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var y={};s(y,"isEvenInt32",e),s(y,"isOddInt32",t),s(y,"isComposite",i),s(y,"isCoprime",r),s(y,"isEven",n),s(y,"isFinite",d),s(y,"isFinitef",m),s(y,"isInfinite",a),s(y,"isInfinitef",o),s(y,"isInteger",j),s(y,"isnan",h),s(y,"isnanf",l),s(y,"isNegativeInteger",p),s(y,"isNegativeZero",f),s(y,"isNegativeZerof",b),s(y,"isNonNegativeInteger",v),s(y,"isNonPositiveInteger",g),s(y,"isOdd",x),s(y,"isPositiveInteger",c),s(y,"isPositiveZero",u),s(y,"isPositiveZerof",I),s(y,"isPrime",P),s(y,"isProbability",N),s(y,"isSafeInteger",z),s(y,"isPow2Uint32",Z);export{y as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..ede5f59 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeInteger","isNonPositiveInteger","isOdd","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;85KAoCA,IAAAA,EAAA,GAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,oBAAAc,GAUAb,EAAAD,EAAA,iBAAAe,GAUAd,EAAAD,EAAA,kBAAAgB,GAUAf,EAAAD,EAAA,uBAAAiB,GAUAhB,EAAAD,EAAA,uBAAAkB,GAUAjB,EAAAD,EAAA,QAAAmB,GAUAlB,EAAAD,EAAA,oBAAAoB,GAUAnB,EAAAD,EAAA,iBAAAqB,GAUApB,EAAAD,EAAA,kBAAAsB,GAUArB,EAAAD,EAAA,UAAAuB,GAUAtB,EAAAD,EAAA,gBAAAwB,GAUAvB,EAAAD,EAAA,gBAAAyB,GAUAxB,EAAAD,EAAA,eAAA0B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 406bc7b..0000000 --- a/lib/index.js +++ /dev/null @@ -1,267 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 394c54c..af7be53 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.0.6", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,84 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.0.x", - "@stdlib/math-base-assert-int32-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-composite": "^0.0.x", - "@stdlib/math-base-assert-is-coprime": "^0.0.x", - "@stdlib/math-base-assert-is-even": "^0.0.x", - "@stdlib/math-base-assert-is-finite": "^0.0.x", - "@stdlib/math-base-assert-is-finitef": "^0.0.x", - "@stdlib/math-base-assert-is-infinite": "^0.0.x", - "@stdlib/math-base-assert-is-infinitef": "^0.0.x", - "@stdlib/math-base-assert-is-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nan": "^0.0.x", - "@stdlib/math-base-assert-is-nanf": "^0.0.x", - "@stdlib/math-base-assert-is-negative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zero": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-positive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zero": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-prime": "^0.0.x", - "@stdlib/math-base-assert-is-probability": "^0.0.x", - "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x", - "@stdlib/error-tools-fmtprodmsg": "^0.0.x" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.0.x", - "@stdlib/bench": "^0.0.x", - "@stdlib/constants-float32-max": "^0.0.x", - "@stdlib/constants-float32-ninf": "^0.0.x", - "@stdlib/constants-float32-pinf": "^0.0.x", - "@stdlib/constants-float32-smallest-subnormal": "^0.0.x", - "@stdlib/constants-float64-max": "^0.0.x", - "@stdlib/constants-float64-max-safe-integer": "^0.0.x", - "@stdlib/constants-float64-min-safe-integer": "^0.0.x", - "@stdlib/constants-float64-ninf": "^0.0.x", - "@stdlib/constants-float64-pinf": "^0.0.x", - "@stdlib/constants-float64-smallest-subnormal": "^0.0.x", - "@stdlib/constants-int32-max": "^0.0.x", - "@stdlib/datasets-primes-100k": "^0.0.x", - "@stdlib/math-base-special-floor": "^0.0.x", - "@stdlib/math-base-special-gcd": "^0.0.x", - "@stdlib/math-base-special-log10": "^0.0.x", - "@stdlib/math-base-special-log2": "^0.0.x", - "@stdlib/math-base-special-pow": "^0.0.x", - "@stdlib/math-base-special-round": "^0.0.x", - "@stdlib/math-base-special-sqrt": "^0.0.x", - "@stdlib/math-base-special-trunc": "^0.0.x", - "@stdlib/number-ctor": "^0.0.x", - "@stdlib/number-float64-base-to-float32": "^0.0.x", - "@stdlib/number-float64-base-to-uint32": "^0.0.x", - "@stdlib/random-base-discrete-uniform": "^0.0.x", - "@stdlib/random-base-randu": "^0.0.x", - "@stdlib/utils-keys": "^0.0.x", - "@stdlib/utils-try-require": "^0.0.x", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-spec": "5.x.x" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -143,4 +43,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..6378f25 --- /dev/null +++ b/stats.html @@ -0,0 +1,2689 @@ + + + + + + + + RollUp Visualizer + + + +
+ + + + + diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 882f197..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.equal( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 067e34d5ce0cec832cabbefb75ec69cf9678deda Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 1 Sep 2022 03:28:01 +0000 Subject: [PATCH 014/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index bf3fec3..1bf91f7 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,8 @@ "@stdlib/math-base-assert-is-probability": "^0.0.x", "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x" + "@stdlib/utils-define-read-only-property": "^0.0.x", + "@stdlib/error-tools-fmtprodmsg": "^0.0.x" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.0.x", @@ -143,4 +144,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} +} \ No newline at end of file From 9b29b6c652539f93a861e7ac7c0657dc8214b6df Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 1 Sep 2022 13:27:35 +0000 Subject: [PATCH 015/190] Remove files --- index.d.ts | 582 ----------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 2689 ------------------------------------------------- 4 files changed, 3276 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 4db31dd..0000000 --- a/index.d.ts +++ /dev/null @@ -1,582 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 2.0 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a numeric value is a probability. - * - * ## Notes - * - * - A probability is defined as a numeric value on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index 39508cb..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2022 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var y={};s(y,"isEvenInt32",e),s(y,"isOddInt32",t),s(y,"isComposite",i),s(y,"isCoprime",r),s(y,"isEven",n),s(y,"isFinite",d),s(y,"isFinitef",m),s(y,"isInfinite",a),s(y,"isInfinitef",o),s(y,"isInteger",j),s(y,"isnan",h),s(y,"isnanf",l),s(y,"isNegativeInteger",p),s(y,"isNegativeZero",f),s(y,"isNegativeZerof",b),s(y,"isNonNegativeInteger",v),s(y,"isNonPositiveInteger",g),s(y,"isOdd",x),s(y,"isPositiveInteger",c),s(y,"isPositiveZero",u),s(y,"isPositiveZerof",I),s(y,"isPrime",P),s(y,"isProbability",N),s(y,"isSafeInteger",z),s(y,"isPow2Uint32",Z);export{y as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index ede5f59..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeInteger","isNonPositiveInteger","isOdd","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;85KAoCA,IAAAA,EAAA,GAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,oBAAAc,GAUAb,EAAAD,EAAA,iBAAAe,GAUAd,EAAAD,EAAA,kBAAAgB,GAUAf,EAAAD,EAAA,uBAAAiB,GAUAhB,EAAAD,EAAA,uBAAAkB,GAUAjB,EAAAD,EAAA,QAAAmB,GAUAlB,EAAAD,EAAA,oBAAAoB,GAUAnB,EAAAD,EAAA,iBAAAqB,GAUApB,EAAAD,EAAA,kBAAAsB,GAUArB,EAAAD,EAAA,UAAAuB,GAUAtB,EAAAD,EAAA,gBAAAwB,GAUAvB,EAAAD,EAAA,gBAAAyB,GAUAxB,EAAAD,EAAA,eAAA0B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 6378f25..0000000 --- a/stats.html +++ /dev/null @@ -1,2689 +0,0 @@ - - - - - - - - RollUp Visualizer - - - -
- - - - - From f41ca2a526897aa9da9a936b0ed589e6da3160c6 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 1 Sep 2022 13:28:30 +0000 Subject: [PATCH 016/190] Auto-generated commit --- .editorconfig | 181 -- .eslintrc.js | 1 - .gitattributes | 49 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 62 - .github/workflows/cancel.yml | 56 - .github/workflows/close_pull_requests.yml | 44 - .github/workflows/examples.yml | 62 - .github/workflows/npm_downloads.yml | 108 - .github/workflows/productionize.yml | 760 ------ .github/workflows/publish.yml | 117 - .github/workflows/test.yml | 92 - .github/workflows/test_bundles.yml | 180 -- .github/workflows/test_coverage.yml | 123 - .github/workflows/test_install.yml | 83 - .gitignore | 178 -- .npmignore | 227 -- .npmrc | 28 - CHANGELOG.md | 5 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 ---- README.md | 91 +- branches.md | 53 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 267 -- package.json | 107 +- stats.html | 2689 +++++++++++++++++++++ test/test.js | 40 - 34 files changed, 2742 insertions(+), 3467 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0fd4d6c..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 8ecae7f..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2022-09-01T01:04:32.335Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 29bf533..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index a7a7f51..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,56 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - uses: styfle/cancel-workflow-action@0.9.0 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 550b204..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,44 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: superbrothers/close-pull-request@v3 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 39b1613..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout the repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index 7ca169c..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,108 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '0 8 * * 6' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "::set-output name=package_name::$name" - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "::set-output name=data::$data" - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - uses: actions/upload-artifact@v2 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - uses: distributhor/workflow-webhook@v2 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 5094681..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,760 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - uses: actions/checkout@v3 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Format error messages: - - name: 'Replace double quotes with single quotes in rewritten format string error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \; - - # Format string literal error messages: - - name: 'Replace double quotes with single quotes in rewritten string literal error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \; - - # Format code: - - name: 'Replace double quotes with single quotes in inserted `require` calls' - run: | - find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \; - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\"/\"@stdlib\/error-tools-fmtprodmsg\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^0.0.x'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "::set-output name=remote-exists::true" - else - echo "::set-output name=remote-exists::false" - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "::set-output name=remote-exists::true" - else - echo "::set-output name=remote-exists::false" - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "::set-output name=alias::${alias}" - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -133,7 +132,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -195,55 +194,55 @@ Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 43f12ad..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index ea40c37..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import assert = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - assert; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..39508cb --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2022 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var y={};s(y,"isEvenInt32",e),s(y,"isOddInt32",t),s(y,"isComposite",i),s(y,"isCoprime",r),s(y,"isEven",n),s(y,"isFinite",d),s(y,"isFinitef",m),s(y,"isInfinite",a),s(y,"isInfinitef",o),s(y,"isInteger",j),s(y,"isnan",h),s(y,"isnanf",l),s(y,"isNegativeInteger",p),s(y,"isNegativeZero",f),s(y,"isNegativeZerof",b),s(y,"isNonNegativeInteger",v),s(y,"isNonPositiveInteger",g),s(y,"isOdd",x),s(y,"isPositiveInteger",c),s(y,"isPositiveZero",u),s(y,"isPositiveZerof",I),s(y,"isPrime",P),s(y,"isProbability",N),s(y,"isSafeInteger",z),s(y,"isPow2Uint32",Z);export{y as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..ede5f59 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeInteger","isNonPositiveInteger","isOdd","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;85KAoCA,IAAAA,EAAA,GAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,oBAAAc,GAUAb,EAAAD,EAAA,iBAAAe,GAUAd,EAAAD,EAAA,kBAAAgB,GAUAf,EAAAD,EAAA,uBAAAiB,GAUAhB,EAAAD,EAAA,uBAAAkB,GAUAjB,EAAAD,EAAA,QAAAmB,GAUAlB,EAAAD,EAAA,oBAAAoB,GAUAnB,EAAAD,EAAA,iBAAAqB,GAUApB,EAAAD,EAAA,kBAAAsB,GAUArB,EAAAD,EAAA,UAAAuB,GAUAtB,EAAAD,EAAA,gBAAAwB,GAUAvB,EAAAD,EAAA,gBAAAyB,GAUAxB,EAAAD,EAAA,eAAA0B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 406bc7b..0000000 --- a/lib/index.js +++ /dev/null @@ -1,267 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 1bf91f7..af7be53 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.0.6", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,85 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.0.x", - "@stdlib/math-base-assert-int32-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-composite": "^0.0.x", - "@stdlib/math-base-assert-is-coprime": "^0.0.x", - "@stdlib/math-base-assert-is-even": "^0.0.x", - "@stdlib/math-base-assert-is-finite": "^0.0.x", - "@stdlib/math-base-assert-is-finitef": "^0.0.x", - "@stdlib/math-base-assert-is-infinite": "^0.0.x", - "@stdlib/math-base-assert-is-infinitef": "^0.0.x", - "@stdlib/math-base-assert-is-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nan": "^0.0.x", - "@stdlib/math-base-assert-is-nanf": "^0.0.x", - "@stdlib/math-base-assert-is-negative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zero": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-positive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zero": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-prime": "^0.0.x", - "@stdlib/math-base-assert-is-probability": "^0.0.x", - "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x", - "@stdlib/error-tools-fmtprodmsg": "^0.0.x" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.0.x", - "@stdlib/bench": "^0.0.x", - "@stdlib/boolean-ctor": "^0.0.x", - "@stdlib/constants-float32-max": "^0.0.x", - "@stdlib/constants-float32-ninf": "^0.0.x", - "@stdlib/constants-float32-pinf": "^0.0.x", - "@stdlib/constants-float32-smallest-subnormal": "^0.0.x", - "@stdlib/constants-float64-max": "^0.0.x", - "@stdlib/constants-float64-max-safe-integer": "^0.0.x", - "@stdlib/constants-float64-min-safe-integer": "^0.0.x", - "@stdlib/constants-float64-ninf": "^0.0.x", - "@stdlib/constants-float64-pinf": "^0.0.x", - "@stdlib/constants-float64-smallest-subnormal": "^0.0.x", - "@stdlib/constants-int32-max": "^0.0.x", - "@stdlib/datasets-primes-100k": "^0.0.x", - "@stdlib/math-base-special-floor": "^0.0.x", - "@stdlib/math-base-special-gcd": "^0.0.x", - "@stdlib/math-base-special-log10": "^0.0.x", - "@stdlib/math-base-special-log2": "^0.0.x", - "@stdlib/math-base-special-pow": "^0.0.x", - "@stdlib/math-base-special-round": "^0.0.x", - "@stdlib/math-base-special-sqrt": "^0.0.x", - "@stdlib/math-base-special-trunc": "^0.0.x", - "@stdlib/number-ctor": "^0.0.x", - "@stdlib/number-float64-base-to-float32": "^0.0.x", - "@stdlib/number-float64-base-to-uint32": "^0.0.x", - "@stdlib/random-base-discrete-uniform": "^0.0.x", - "@stdlib/random-base-randu": "^0.0.x", - "@stdlib/utils-keys": "^0.0.x", - "@stdlib/utils-try-require": "^0.0.x", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-spec": "5.x.x" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -144,4 +43,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..65f5f9d --- /dev/null +++ b/stats.html @@ -0,0 +1,2689 @@ + + + + + + + + RollUp Visualizer + + + +
+ + + + + diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 882f197..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.equal( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 38736ebc0e837e7f6095a8252d668d076cbc13e6 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 1 Oct 2022 03:50:21 +0000 Subject: [PATCH 017/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index bf3fec3..1bf91f7 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,8 @@ "@stdlib/math-base-assert-is-probability": "^0.0.x", "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x" + "@stdlib/utils-define-read-only-property": "^0.0.x", + "@stdlib/error-tools-fmtprodmsg": "^0.0.x" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.0.x", @@ -143,4 +144,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} +} \ No newline at end of file From ffb2b8646d021808c893f27c5189483e2eaa232d Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 1 Oct 2022 13:29:10 +0000 Subject: [PATCH 018/190] Remove files --- index.d.ts | 582 ----------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 2689 ------------------------------------------------- 4 files changed, 3276 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 4db31dd..0000000 --- a/index.d.ts +++ /dev/null @@ -1,582 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 2.0 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a numeric value is a probability. - * - * ## Notes - * - * - A probability is defined as a numeric value on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index 39508cb..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2022 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var y={};s(y,"isEvenInt32",e),s(y,"isOddInt32",t),s(y,"isComposite",i),s(y,"isCoprime",r),s(y,"isEven",n),s(y,"isFinite",d),s(y,"isFinitef",m),s(y,"isInfinite",a),s(y,"isInfinitef",o),s(y,"isInteger",j),s(y,"isnan",h),s(y,"isnanf",l),s(y,"isNegativeInteger",p),s(y,"isNegativeZero",f),s(y,"isNegativeZerof",b),s(y,"isNonNegativeInteger",v),s(y,"isNonPositiveInteger",g),s(y,"isOdd",x),s(y,"isPositiveInteger",c),s(y,"isPositiveZero",u),s(y,"isPositiveZerof",I),s(y,"isPrime",P),s(y,"isProbability",N),s(y,"isSafeInteger",z),s(y,"isPow2Uint32",Z);export{y as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index ede5f59..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeInteger","isNonPositiveInteger","isOdd","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;85KAoCA,IAAAA,EAAA,GAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,oBAAAc,GAUAb,EAAAD,EAAA,iBAAAe,GAUAd,EAAAD,EAAA,kBAAAgB,GAUAf,EAAAD,EAAA,uBAAAiB,GAUAhB,EAAAD,EAAA,uBAAAkB,GAUAjB,EAAAD,EAAA,QAAAmB,GAUAlB,EAAAD,EAAA,oBAAAoB,GAUAnB,EAAAD,EAAA,iBAAAqB,GAUApB,EAAAD,EAAA,kBAAAsB,GAUArB,EAAAD,EAAA,UAAAuB,GAUAtB,EAAAD,EAAA,gBAAAwB,GAUAvB,EAAAD,EAAA,gBAAAyB,GAUAxB,EAAAD,EAAA,eAAA0B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 65f5f9d..0000000 --- a/stats.html +++ /dev/null @@ -1,2689 +0,0 @@ - - - - - - - - RollUp Visualizer - - - -
- - - - - From a357b6f1fc03544121719c279ec78da7aceb07fd Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 1 Oct 2022 13:30:18 +0000 Subject: [PATCH 019/190] Auto-generated commit --- .editorconfig | 181 -- .eslintrc.js | 1 - .gitattributes | 49 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 62 - .github/workflows/cancel.yml | 56 - .github/workflows/close_pull_requests.yml | 44 - .github/workflows/examples.yml | 62 - .github/workflows/npm_downloads.yml | 108 - .github/workflows/productionize.yml | 760 ------ .github/workflows/publish.yml | 117 - .github/workflows/test.yml | 92 - .github/workflows/test_bundles.yml | 180 -- .github/workflows/test_coverage.yml | 123 - .github/workflows/test_install.yml | 83 - .gitignore | 178 -- .npmignore | 227 -- .npmrc | 28 - CHANGELOG.md | 5 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 ---- README.md | 91 +- branches.md | 53 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 267 -- package.json | 107 +- stats.html | 2689 +++++++++++++++++++++ test/test.js | 40 - 34 files changed, 2742 insertions(+), 3467 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0fd4d6c..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 396a3fe..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2022-10-01T01:29:18.468Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 29bf533..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index a7a7f51..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,56 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - uses: styfle/cancel-workflow-action@0.9.0 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 550b204..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,44 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: superbrothers/close-pull-request@v3 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 39b1613..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout the repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index 7ca169c..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,108 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '0 8 * * 6' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "::set-output name=package_name::$name" - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "::set-output name=data::$data" - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - uses: actions/upload-artifact@v2 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - uses: distributhor/workflow-webhook@v2 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 5094681..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,760 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - uses: actions/checkout@v3 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Format error messages: - - name: 'Replace double quotes with single quotes in rewritten format string error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \; - - # Format string literal error messages: - - name: 'Replace double quotes with single quotes in rewritten string literal error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \; - - # Format code: - - name: 'Replace double quotes with single quotes in inserted `require` calls' - run: | - find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \; - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\"/\"@stdlib\/error-tools-fmtprodmsg\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^0.0.x'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "::set-output name=remote-exists::true" - else - echo "::set-output name=remote-exists::false" - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "::set-output name=remote-exists::true" - else - echo "::set-output name=remote-exists::false" - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "::set-output name=alias::${alias}" - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -133,7 +132,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -195,55 +194,55 @@ Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 43f12ad..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index ea40c37..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import assert = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - assert; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..39508cb --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2022 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var y={};s(y,"isEvenInt32",e),s(y,"isOddInt32",t),s(y,"isComposite",i),s(y,"isCoprime",r),s(y,"isEven",n),s(y,"isFinite",d),s(y,"isFinitef",m),s(y,"isInfinite",a),s(y,"isInfinitef",o),s(y,"isInteger",j),s(y,"isnan",h),s(y,"isnanf",l),s(y,"isNegativeInteger",p),s(y,"isNegativeZero",f),s(y,"isNegativeZerof",b),s(y,"isNonNegativeInteger",v),s(y,"isNonPositiveInteger",g),s(y,"isOdd",x),s(y,"isPositiveInteger",c),s(y,"isPositiveZero",u),s(y,"isPositiveZerof",I),s(y,"isPrime",P),s(y,"isProbability",N),s(y,"isSafeInteger",z),s(y,"isPow2Uint32",Z);export{y as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..ede5f59 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeInteger","isNonPositiveInteger","isOdd","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;85KAoCA,IAAAA,EAAA,GAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,oBAAAc,GAUAb,EAAAD,EAAA,iBAAAe,GAUAd,EAAAD,EAAA,kBAAAgB,GAUAf,EAAAD,EAAA,uBAAAiB,GAUAhB,EAAAD,EAAA,uBAAAkB,GAUAjB,EAAAD,EAAA,QAAAmB,GAUAlB,EAAAD,EAAA,oBAAAoB,GAUAnB,EAAAD,EAAA,iBAAAqB,GAUApB,EAAAD,EAAA,kBAAAsB,GAUArB,EAAAD,EAAA,UAAAuB,GAUAtB,EAAAD,EAAA,gBAAAwB,GAUAvB,EAAAD,EAAA,gBAAAyB,GAUAxB,EAAAD,EAAA,eAAA0B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 406bc7b..0000000 --- a/lib/index.js +++ /dev/null @@ -1,267 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 1bf91f7..af7be53 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.0.6", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,85 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.0.x", - "@stdlib/math-base-assert-int32-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-composite": "^0.0.x", - "@stdlib/math-base-assert-is-coprime": "^0.0.x", - "@stdlib/math-base-assert-is-even": "^0.0.x", - "@stdlib/math-base-assert-is-finite": "^0.0.x", - "@stdlib/math-base-assert-is-finitef": "^0.0.x", - "@stdlib/math-base-assert-is-infinite": "^0.0.x", - "@stdlib/math-base-assert-is-infinitef": "^0.0.x", - "@stdlib/math-base-assert-is-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nan": "^0.0.x", - "@stdlib/math-base-assert-is-nanf": "^0.0.x", - "@stdlib/math-base-assert-is-negative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zero": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-positive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zero": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-prime": "^0.0.x", - "@stdlib/math-base-assert-is-probability": "^0.0.x", - "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x", - "@stdlib/error-tools-fmtprodmsg": "^0.0.x" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.0.x", - "@stdlib/bench": "^0.0.x", - "@stdlib/boolean-ctor": "^0.0.x", - "@stdlib/constants-float32-max": "^0.0.x", - "@stdlib/constants-float32-ninf": "^0.0.x", - "@stdlib/constants-float32-pinf": "^0.0.x", - "@stdlib/constants-float32-smallest-subnormal": "^0.0.x", - "@stdlib/constants-float64-max": "^0.0.x", - "@stdlib/constants-float64-max-safe-integer": "^0.0.x", - "@stdlib/constants-float64-min-safe-integer": "^0.0.x", - "@stdlib/constants-float64-ninf": "^0.0.x", - "@stdlib/constants-float64-pinf": "^0.0.x", - "@stdlib/constants-float64-smallest-subnormal": "^0.0.x", - "@stdlib/constants-int32-max": "^0.0.x", - "@stdlib/datasets-primes-100k": "^0.0.x", - "@stdlib/math-base-special-floor": "^0.0.x", - "@stdlib/math-base-special-gcd": "^0.0.x", - "@stdlib/math-base-special-log10": "^0.0.x", - "@stdlib/math-base-special-log2": "^0.0.x", - "@stdlib/math-base-special-pow": "^0.0.x", - "@stdlib/math-base-special-round": "^0.0.x", - "@stdlib/math-base-special-sqrt": "^0.0.x", - "@stdlib/math-base-special-trunc": "^0.0.x", - "@stdlib/number-ctor": "^0.0.x", - "@stdlib/number-float64-base-to-float32": "^0.0.x", - "@stdlib/number-float64-base-to-uint32": "^0.0.x", - "@stdlib/random-base-discrete-uniform": "^0.0.x", - "@stdlib/random-base-randu": "^0.0.x", - "@stdlib/utils-keys": "^0.0.x", - "@stdlib/utils-try-require": "^0.0.x", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-spec": "5.x.x" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -144,4 +43,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..0ac1905 --- /dev/null +++ b/stats.html @@ -0,0 +1,2689 @@ + + + + + + + + RollUp Visualizer + + + +
+ + + + + diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 882f197..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.equal( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From a7ea57a354190991661705ea13fd99506a27365d Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Tue, 11 Oct 2022 22:00:49 +0000 Subject: [PATCH 020/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index bf3fec3..1bf91f7 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,8 @@ "@stdlib/math-base-assert-is-probability": "^0.0.x", "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x" + "@stdlib/utils-define-read-only-property": "^0.0.x", + "@stdlib/error-tools-fmtprodmsg": "^0.0.x" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.0.x", @@ -143,4 +144,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} +} \ No newline at end of file From d7f28b38e1cc0deef948763a4c2ca97929c4f5b6 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Tue, 11 Oct 2022 22:36:42 +0000 Subject: [PATCH 021/190] Remove files --- index.d.ts | 582 ----------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 2689 ------------------------------------------------- 4 files changed, 3276 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 4db31dd..0000000 --- a/index.d.ts +++ /dev/null @@ -1,582 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 2.0 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a numeric value is a probability. - * - * ## Notes - * - * - A probability is defined as a numeric value on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index 39508cb..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2022 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var y={};s(y,"isEvenInt32",e),s(y,"isOddInt32",t),s(y,"isComposite",i),s(y,"isCoprime",r),s(y,"isEven",n),s(y,"isFinite",d),s(y,"isFinitef",m),s(y,"isInfinite",a),s(y,"isInfinitef",o),s(y,"isInteger",j),s(y,"isnan",h),s(y,"isnanf",l),s(y,"isNegativeInteger",p),s(y,"isNegativeZero",f),s(y,"isNegativeZerof",b),s(y,"isNonNegativeInteger",v),s(y,"isNonPositiveInteger",g),s(y,"isOdd",x),s(y,"isPositiveInteger",c),s(y,"isPositiveZero",u),s(y,"isPositiveZerof",I),s(y,"isPrime",P),s(y,"isProbability",N),s(y,"isSafeInteger",z),s(y,"isPow2Uint32",Z);export{y as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index ede5f59..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeInteger","isNonPositiveInteger","isOdd","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;85KAoCA,IAAAA,EAAA,GAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,oBAAAc,GAUAb,EAAAD,EAAA,iBAAAe,GAUAd,EAAAD,EAAA,kBAAAgB,GAUAf,EAAAD,EAAA,uBAAAiB,GAUAhB,EAAAD,EAAA,uBAAAkB,GAUAjB,EAAAD,EAAA,QAAAmB,GAUAlB,EAAAD,EAAA,oBAAAoB,GAUAnB,EAAAD,EAAA,iBAAAqB,GAUApB,EAAAD,EAAA,kBAAAsB,GAUArB,EAAAD,EAAA,UAAAuB,GAUAtB,EAAAD,EAAA,gBAAAwB,GAUAvB,EAAAD,EAAA,gBAAAyB,GAUAxB,EAAAD,EAAA,eAAA0B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 0ac1905..0000000 --- a/stats.html +++ /dev/null @@ -1,2689 +0,0 @@ - - - - - - - - RollUp Visualizer - - - -
- - - - - From d1ff868f2cdb98f70db6f534fcffdf86ca82a65a Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Tue, 11 Oct 2022 22:37:57 +0000 Subject: [PATCH 022/190] Auto-generated commit --- .editorconfig | 181 -- .eslintrc.js | 1 - .gitattributes | 49 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 62 - .github/workflows/cancel.yml | 56 - .github/workflows/close_pull_requests.yml | 44 - .github/workflows/examples.yml | 62 - .github/workflows/npm_downloads.yml | 108 - .github/workflows/productionize.yml | 760 ------ .github/workflows/publish.yml | 117 - .github/workflows/test.yml | 92 - .github/workflows/test_bundles.yml | 180 -- .github/workflows/test_coverage.yml | 123 - .github/workflows/test_install.yml | 83 - .gitignore | 178 -- .npmignore | 227 -- .npmrc | 28 - CHANGELOG.md | 5 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 ---- README.md | 91 +- branches.md | 53 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 267 -- package.json | 107 +- stats.html | 2689 +++++++++++++++++++++ test/test.js | 40 - 33 files changed, 2742 insertions(+), 3466 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0fd4d6c..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 29bf533..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index a7a7f51..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,56 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - uses: styfle/cancel-workflow-action@0.9.0 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 550b204..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,44 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: superbrothers/close-pull-request@v3 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 39b1613..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout the repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index 7ca169c..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,108 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '0 8 * * 6' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "::set-output name=package_name::$name" - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "::set-output name=data::$data" - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - uses: actions/upload-artifact@v2 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - uses: distributhor/workflow-webhook@v2 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 5094681..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,760 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - uses: actions/checkout@v3 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Format error messages: - - name: 'Replace double quotes with single quotes in rewritten format string error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \; - - # Format string literal error messages: - - name: 'Replace double quotes with single quotes in rewritten string literal error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \; - - # Format code: - - name: 'Replace double quotes with single quotes in inserted `require` calls' - run: | - find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \; - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\"/\"@stdlib\/error-tools-fmtprodmsg\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^0.0.x'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "::set-output name=remote-exists::true" - else - echo "::set-output name=remote-exists::false" - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "::set-output name=remote-exists::true" - else - echo "::set-output name=remote-exists::false" - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - uses: actions/setup-node@v2 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "::set-output name=alias::${alias}" - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -133,7 +132,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -195,55 +194,55 @@ Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 43f12ad..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index 1cdbcd0..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..39508cb --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2022 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var y={};s(y,"isEvenInt32",e),s(y,"isOddInt32",t),s(y,"isComposite",i),s(y,"isCoprime",r),s(y,"isEven",n),s(y,"isFinite",d),s(y,"isFinitef",m),s(y,"isInfinite",a),s(y,"isInfinitef",o),s(y,"isInteger",j),s(y,"isnan",h),s(y,"isnanf",l),s(y,"isNegativeInteger",p),s(y,"isNegativeZero",f),s(y,"isNegativeZerof",b),s(y,"isNonNegativeInteger",v),s(y,"isNonPositiveInteger",g),s(y,"isOdd",x),s(y,"isPositiveInteger",c),s(y,"isPositiveZero",u),s(y,"isPositiveZerof",I),s(y,"isPrime",P),s(y,"isProbability",N),s(y,"isSafeInteger",z),s(y,"isPow2Uint32",Z);export{y as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..ede5f59 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeInteger","isNonPositiveInteger","isOdd","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;85KAoCA,IAAAA,EAAA,GAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,oBAAAc,GAUAb,EAAAD,EAAA,iBAAAe,GAUAd,EAAAD,EAAA,kBAAAgB,GAUAf,EAAAD,EAAA,uBAAAiB,GAUAhB,EAAAD,EAAA,uBAAAkB,GAUAjB,EAAAD,EAAA,QAAAmB,GAUAlB,EAAAD,EAAA,oBAAAoB,GAUAnB,EAAAD,EAAA,iBAAAqB,GAUApB,EAAAD,EAAA,kBAAAsB,GAUArB,EAAAD,EAAA,UAAAuB,GAUAtB,EAAAD,EAAA,gBAAAwB,GAUAvB,EAAAD,EAAA,gBAAAyB,GAUAxB,EAAAD,EAAA,eAAA0B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 406bc7b..0000000 --- a/lib/index.js +++ /dev/null @@ -1,267 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 1bf91f7..af7be53 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.0.6", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,85 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.0.x", - "@stdlib/math-base-assert-int32-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-composite": "^0.0.x", - "@stdlib/math-base-assert-is-coprime": "^0.0.x", - "@stdlib/math-base-assert-is-even": "^0.0.x", - "@stdlib/math-base-assert-is-finite": "^0.0.x", - "@stdlib/math-base-assert-is-finitef": "^0.0.x", - "@stdlib/math-base-assert-is-infinite": "^0.0.x", - "@stdlib/math-base-assert-is-infinitef": "^0.0.x", - "@stdlib/math-base-assert-is-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nan": "^0.0.x", - "@stdlib/math-base-assert-is-nanf": "^0.0.x", - "@stdlib/math-base-assert-is-negative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zero": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-positive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zero": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-prime": "^0.0.x", - "@stdlib/math-base-assert-is-probability": "^0.0.x", - "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x", - "@stdlib/error-tools-fmtprodmsg": "^0.0.x" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.0.x", - "@stdlib/bench": "^0.0.x", - "@stdlib/boolean-ctor": "^0.0.x", - "@stdlib/constants-float32-max": "^0.0.x", - "@stdlib/constants-float32-ninf": "^0.0.x", - "@stdlib/constants-float32-pinf": "^0.0.x", - "@stdlib/constants-float32-smallest-subnormal": "^0.0.x", - "@stdlib/constants-float64-max": "^0.0.x", - "@stdlib/constants-float64-max-safe-integer": "^0.0.x", - "@stdlib/constants-float64-min-safe-integer": "^0.0.x", - "@stdlib/constants-float64-ninf": "^0.0.x", - "@stdlib/constants-float64-pinf": "^0.0.x", - "@stdlib/constants-float64-smallest-subnormal": "^0.0.x", - "@stdlib/constants-int32-max": "^0.0.x", - "@stdlib/datasets-primes-100k": "^0.0.x", - "@stdlib/math-base-special-floor": "^0.0.x", - "@stdlib/math-base-special-gcd": "^0.0.x", - "@stdlib/math-base-special-log10": "^0.0.x", - "@stdlib/math-base-special-log2": "^0.0.x", - "@stdlib/math-base-special-pow": "^0.0.x", - "@stdlib/math-base-special-round": "^0.0.x", - "@stdlib/math-base-special-sqrt": "^0.0.x", - "@stdlib/math-base-special-trunc": "^0.0.x", - "@stdlib/number-ctor": "^0.0.x", - "@stdlib/number-float64-base-to-float32": "^0.0.x", - "@stdlib/number-float64-base-to-uint32": "^0.0.x", - "@stdlib/random-base-discrete-uniform": "^0.0.x", - "@stdlib/random-base-randu": "^0.0.x", - "@stdlib/utils-keys": "^0.0.x", - "@stdlib/utils-try-require": "^0.0.x", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-spec": "5.x.x" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -144,4 +43,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..0f825fc --- /dev/null +++ b/stats.html @@ -0,0 +1,2689 @@ + + + + + + + + RollUp Visualizer + + + +
+ + + + + diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 882f197..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.equal( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From fb3474d79b9ecaf134de86b77fec8ba2495810ec Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 3 Nov 2022 21:48:11 +0000 Subject: [PATCH 023/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e9b87d1..697d0b0 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.0.x", "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x" + "@stdlib/utils-define-read-only-property": "^0.0.x", + "@stdlib/error-tools-fmtprodmsg": "^0.0.x" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.0.x", @@ -147,4 +148,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} +} \ No newline at end of file From f8ebdf90578966ab12c376c03672ccc3a4bdfa2a Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 4 Nov 2022 10:24:45 +0000 Subject: [PATCH 024/190] Remove files --- index.d.ts | 582 ----------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 2689 ------------------------------------------------- 4 files changed, 3276 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 4db31dd..0000000 --- a/index.d.ts +++ /dev/null @@ -1,582 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 2.0 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a numeric value is a probability. - * - * ## Notes - * - * - A probability is defined as a numeric value on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index 39508cb..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2022 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var y={};s(y,"isEvenInt32",e),s(y,"isOddInt32",t),s(y,"isComposite",i),s(y,"isCoprime",r),s(y,"isEven",n),s(y,"isFinite",d),s(y,"isFinitef",m),s(y,"isInfinite",a),s(y,"isInfinitef",o),s(y,"isInteger",j),s(y,"isnan",h),s(y,"isnanf",l),s(y,"isNegativeInteger",p),s(y,"isNegativeZero",f),s(y,"isNegativeZerof",b),s(y,"isNonNegativeInteger",v),s(y,"isNonPositiveInteger",g),s(y,"isOdd",x),s(y,"isPositiveInteger",c),s(y,"isPositiveZero",u),s(y,"isPositiveZerof",I),s(y,"isPrime",P),s(y,"isProbability",N),s(y,"isSafeInteger",z),s(y,"isPow2Uint32",Z);export{y as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index ede5f59..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeInteger","isNonPositiveInteger","isOdd","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;85KAoCA,IAAAA,EAAA,GAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,oBAAAc,GAUAb,EAAAD,EAAA,iBAAAe,GAUAd,EAAAD,EAAA,kBAAAgB,GAUAf,EAAAD,EAAA,uBAAAiB,GAUAhB,EAAAD,EAAA,uBAAAkB,GAUAjB,EAAAD,EAAA,QAAAmB,GAUAlB,EAAAD,EAAA,oBAAAoB,GAUAnB,EAAAD,EAAA,iBAAAqB,GAUApB,EAAAD,EAAA,kBAAAsB,GAUArB,EAAAD,EAAA,UAAAuB,GAUAtB,EAAAD,EAAA,gBAAAwB,GAUAvB,EAAAD,EAAA,gBAAAyB,GAUAxB,EAAAD,EAAA,eAAA0B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 0f825fc..0000000 --- a/stats.html +++ /dev/null @@ -1,2689 +0,0 @@ - - - - - - - - RollUp Visualizer - - - -
- - - - - From 65f864d228d7617602e4c80898080da9538bae58 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 4 Nov 2022 10:25:52 +0000 Subject: [PATCH 025/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 49 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 62 - .github/workflows/cancel.yml | 56 - .github/workflows/close_pull_requests.yml | 44 - .github/workflows/examples.yml | 62 - .github/workflows/npm_downloads.yml | 108 - .github/workflows/productionize.yml | 781 ---- .github/workflows/publish.yml | 117 - .github/workflows/test.yml | 92 - .github/workflows/test_bundles.yml | 180 - .github/workflows/test_coverage.yml | 123 - .github/workflows/test_install.yml | 83 - .gitignore | 178 - .npmignore | 227 -- .npmrc | 28 - CHANGELOG.md | 5 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 --- README.md | 99 +- branches.md | 53 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 -- package.json | 111 +- stats.html | 4044 +++++++++++++++++++++ test/test.js | 40 - 34 files changed, 4101 insertions(+), 3532 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0fd4d6c..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index acaa344..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2022-11-03T21:47:43.155Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 06a9a75..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index a00dbe5..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,56 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - uses: styfle/cancel-workflow-action@0.11.0 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 550b204..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,44 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: superbrothers/close-pull-request@v3 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 7902a7d..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout the repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index c4e1fd9..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,108 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - uses: actions/upload-artifact@v3 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - uses: distributhor/workflow-webhook@v3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 37ddb4f..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,781 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - uses: actions/checkout@v3 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Format error messages: - - name: 'Replace double quotes with single quotes in rewritten format string error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \; - - # Format string literal error messages: - - name: 'Replace double quotes with single quotes in rewritten string literal error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \; - - # Format code: - - name: 'Replace double quotes with single quotes in inserted `require` calls' - run: | - find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \; - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\"/\"@stdlib\/error-tools-fmtprodmsg\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^0.0.x'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -137,7 +136,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -199,63 +198,63 @@ Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 43f12ad..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index 1cdbcd0..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..02148e1 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2022 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",b),s(E,"isNegativeZerof",v),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..4c30425 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;w4MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 697d0b0..af7be53 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.0.6", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.0.x", - "@stdlib/math-base-assert-int32-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-composite": "^0.0.x", - "@stdlib/math-base-assert-is-coprime": "^0.0.x", - "@stdlib/math-base-assert-is-even": "^0.0.x", - "@stdlib/math-base-assert-is-finite": "^0.0.x", - "@stdlib/math-base-assert-is-finitef": "^0.0.x", - "@stdlib/math-base-assert-is-infinite": "^0.0.x", - "@stdlib/math-base-assert-is-infinitef": "^0.0.x", - "@stdlib/math-base-assert-is-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nan": "^0.0.x", - "@stdlib/math-base-assert-is-nanf": "^0.0.x", - "@stdlib/math-base-assert-is-negative-finite": "^0.0.x", - "@stdlib/math-base-assert-is-negative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zero": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.0.x", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.0.x", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-positive-finite": "^0.0.x", - "@stdlib/math-base-assert-is-positive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zero": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-prime": "^0.0.x", - "@stdlib/math-base-assert-is-probability": "^0.0.x", - "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x", - "@stdlib/error-tools-fmtprodmsg": "^0.0.x" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.0.x", - "@stdlib/bench": "^0.0.x", - "@stdlib/boolean-ctor": "^0.0.x", - "@stdlib/constants-float32-max": "^0.0.x", - "@stdlib/constants-float32-ninf": "^0.0.x", - "@stdlib/constants-float32-pinf": "^0.0.x", - "@stdlib/constants-float32-smallest-subnormal": "^0.0.x", - "@stdlib/constants-float64-max": "^0.0.x", - "@stdlib/constants-float64-max-safe-integer": "^0.0.x", - "@stdlib/constants-float64-min-safe-integer": "^0.0.x", - "@stdlib/constants-float64-ninf": "^0.0.x", - "@stdlib/constants-float64-pinf": "^0.0.x", - "@stdlib/constants-float64-smallest-subnormal": "^0.0.x", - "@stdlib/constants-int32-max": "^0.0.x", - "@stdlib/datasets-primes-100k": "^0.0.x", - "@stdlib/math-base-special-floor": "^0.0.x", - "@stdlib/math-base-special-gcd": "^0.0.x", - "@stdlib/math-base-special-log10": "^0.0.x", - "@stdlib/math-base-special-log2": "^0.0.x", - "@stdlib/math-base-special-pow": "^0.0.x", - "@stdlib/math-base-special-round": "^0.0.x", - "@stdlib/math-base-special-sqrt": "^0.0.x", - "@stdlib/math-base-special-trunc": "^0.0.x", - "@stdlib/number-ctor": "^0.0.x", - "@stdlib/number-float64-base-to-float32": "^0.0.x", - "@stdlib/number-float64-base-to-uint32": "^0.0.x", - "@stdlib/random-base-discrete-uniform": "^0.0.x", - "@stdlib/random-base-randu": "^0.0.x", - "@stdlib/utils-keys": "^0.0.x", - "@stdlib/utils-try-require": "^0.0.x", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-spec": "5.x.x" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..2cef707 --- /dev/null +++ b/stats.html @@ -0,0 +1,4044 @@ + + + + + + + + RollUp Visualizer + + + +
+ + + + + diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 882f197..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.equal( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From cda0ababff721e29ee7a97d6af8bf1ffbecc696b Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 1 Dec 2022 03:53:02 +0000 Subject: [PATCH 026/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2e75638..9eaf418 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.0.x", "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x" + "@stdlib/utils-define-read-only-property": "^0.0.x", + "@stdlib/error-tools-fmtprodmsg": "^0.0.x" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.0.x", @@ -147,4 +148,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} +} \ No newline at end of file From 389eccef0f7b7a9b6a0cdaf95d124fe77e040c00 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 1 Dec 2022 17:19:00 +0000 Subject: [PATCH 027/190] Remove files --- index.d.ts | 706 --------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4044 ------------------------------------------------- 4 files changed, 4755 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 2d2cc82..0000000 --- a/index.d.ts +++ /dev/null @@ -1,706 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 2.0 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a numeric value is a probability. - * - * ## Notes - * - * - A probability is defined as a numeric value on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index 02148e1..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2022 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",b),s(E,"isNegativeZerof",v),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index 4c30425..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;w4MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 2cef707..0000000 --- a/stats.html +++ /dev/null @@ -1,4044 +0,0 @@ - - - - - - - - RollUp Visualizer - - - -
- - - - - From c88a6ec3c343b6c416d1e7ad4cdbb4a44e4b3885 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 1 Dec 2022 17:20:07 +0000 Subject: [PATCH 028/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 49 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 62 - .github/workflows/cancel.yml | 56 - .github/workflows/close_pull_requests.yml | 44 - .github/workflows/examples.yml | 62 - .github/workflows/npm_downloads.yml | 108 - .github/workflows/productionize.yml | 781 ---- .github/workflows/publish.yml | 117 - .github/workflows/test.yml | 92 - .github/workflows/test_bundles.yml | 180 - .github/workflows/test_coverage.yml | 123 - .github/workflows/test_install.yml | 83 - .gitignore | 183 - .npmignore | 227 -- .npmrc | 28 - CHANGELOG.md | 5 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 --- README.md | 99 +- branches.md | 53 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 -- package.json | 111 +- stats.html | 4044 +++++++++++++++++++++ test/test.js | 40 - 34 files changed, 4101 insertions(+), 3537 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0fd4d6c..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 984bf72..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2022-12-01T01:37:37.672Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 06a9a75..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index a00dbe5..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,56 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - uses: styfle/cancel-workflow-action@0.11.0 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 550b204..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,44 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: superbrothers/close-pull-request@v3 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 7902a7d..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout the repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index c4e1fd9..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,108 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - uses: actions/upload-artifact@v3 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - uses: distributhor/workflow-webhook@v3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 37ddb4f..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,781 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - uses: actions/checkout@v3 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Format error messages: - - name: 'Replace double quotes with single quotes in rewritten format string error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \; - - # Format string literal error messages: - - name: 'Replace double quotes with single quotes in rewritten string literal error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \; - - # Format code: - - name: 'Replace double quotes with single quotes in inserted `require` calls' - run: | - find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \; - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\"/\"@stdlib\/error-tools-fmtprodmsg\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^0.0.x'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -137,7 +136,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -199,63 +198,63 @@ Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 43f12ad..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index 1cdbcd0..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..02148e1 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2022 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",b),s(E,"isNegativeZerof",v),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..3aab157 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;w4MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 9eaf418..af7be53 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.0.6", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.0.x", - "@stdlib/math-base-assert-int32-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-composite": "^0.0.x", - "@stdlib/math-base-assert-is-coprime": "^0.0.x", - "@stdlib/math-base-assert-is-even": "^0.0.x", - "@stdlib/math-base-assert-is-finite": "^0.0.x", - "@stdlib/math-base-assert-is-finitef": "^0.0.x", - "@stdlib/math-base-assert-is-infinite": "^0.0.x", - "@stdlib/math-base-assert-is-infinitef": "^0.0.x", - "@stdlib/math-base-assert-is-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nan": "^0.0.x", - "@stdlib/math-base-assert-is-nanf": "^0.0.x", - "@stdlib/math-base-assert-is-negative-finite": "^0.0.x", - "@stdlib/math-base-assert-is-negative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zero": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.0.x", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.0.x", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-positive-finite": "^0.0.x", - "@stdlib/math-base-assert-is-positive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zero": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-prime": "^0.0.x", - "@stdlib/math-base-assert-is-probability": "^0.0.x", - "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x", - "@stdlib/error-tools-fmtprodmsg": "^0.0.x" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.0.x", - "@stdlib/bench": "^0.0.x", - "@stdlib/boolean-ctor": "^0.0.x", - "@stdlib/constants-float32-max": "^0.0.x", - "@stdlib/constants-float32-ninf": "^0.0.x", - "@stdlib/constants-float32-pinf": "^0.0.x", - "@stdlib/constants-float32-smallest-subnormal": "^0.0.x", - "@stdlib/constants-float64-max": "^0.0.x", - "@stdlib/constants-float64-max-safe-integer": "^0.0.x", - "@stdlib/constants-float64-min-safe-integer": "^0.0.x", - "@stdlib/constants-float64-ninf": "^0.0.x", - "@stdlib/constants-float64-pinf": "^0.0.x", - "@stdlib/constants-float64-smallest-subnormal": "^0.0.x", - "@stdlib/constants-int32-max": "^0.0.x", - "@stdlib/datasets-primes-100k": "^0.0.x", - "@stdlib/math-base-special-floor": "^0.0.x", - "@stdlib/math-base-special-gcd": "^0.0.x", - "@stdlib/math-base-special-log10": "^0.0.x", - "@stdlib/math-base-special-log2": "^0.0.x", - "@stdlib/math-base-special-pow": "^0.0.x", - "@stdlib/math-base-special-round": "^0.0.x", - "@stdlib/math-base-special-sqrt": "^0.0.x", - "@stdlib/math-base-special-trunc": "^0.0.x", - "@stdlib/number-ctor": "^0.0.x", - "@stdlib/number-float64-base-to-float32": "^0.0.x", - "@stdlib/number-float64-base-to-uint32": "^0.0.x", - "@stdlib/random-base-discrete-uniform": "^0.0.x", - "@stdlib/random-base-randu": "^0.0.x", - "@stdlib/utils-keys": "^0.0.x", - "@stdlib/utils-try-require": "^0.0.x", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "2.x.x" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..47e44b8 --- /dev/null +++ b/stats.html @@ -0,0 +1,4044 @@ + + + + + + + + RollUp Visualizer + + + +
+ + + + + diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 882f197..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.equal( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From fabb6d23e76a0a6f10cc2ee73f4b08fd2e1135c4 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Wed, 28 Dec 2022 06:59:10 +0000 Subject: [PATCH 029/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c4fc3b5..63a8e44 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.0.x", "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x" + "@stdlib/utils-define-read-only-property": "^0.0.x", + "@stdlib/error-tools-fmtprodmsg": "^0.0.x" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.0.x", @@ -147,4 +148,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} +} \ No newline at end of file From 6a19c88bf8aa057bd3eae4ca62aae286f8f488c0 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Wed, 28 Dec 2022 07:02:41 +0000 Subject: [PATCH 030/190] Remove files --- index.d.ts | 706 --------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4044 ------------------------------------------------- 4 files changed, 4755 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 2d2cc82..0000000 --- a/index.d.ts +++ /dev/null @@ -1,706 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 2.0 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a numeric value is a probability. - * - * ## Notes - * - * - A probability is defined as a numeric value on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index 02148e1..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2022 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",b),s(E,"isNegativeZerof",v),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index 3aab157..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;w4MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 47e44b8..0000000 --- a/stats.html +++ /dev/null @@ -1,4044 +0,0 @@ - - - - - - - - RollUp Visualizer - - - -
- - - - - From 1c021b82023289068bb5003b26613f13615dcac7 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Wed, 28 Dec 2022 07:03:48 +0000 Subject: [PATCH 031/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 49 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 62 - .github/workflows/cancel.yml | 56 - .github/workflows/close_pull_requests.yml | 44 - .github/workflows/examples.yml | 62 - .github/workflows/npm_downloads.yml | 108 - .github/workflows/productionize.yml | 781 ---- .github/workflows/publish.yml | 117 - .github/workflows/test.yml | 92 - .github/workflows/test_bundles.yml | 180 - .github/workflows/test_coverage.yml | 123 - .github/workflows/test_install.yml | 83 - .gitignore | 184 - .npmignore | 227 -- .npmrc | 28 - CHANGELOG.md | 5 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 --- README.md | 99 +- branches.md | 53 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 -- package.json | 111 +- stats.html | 4044 +++++++++++++++++++++ test/test.js | 40 - 33 files changed, 4101 insertions(+), 3537 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0fd4d6c..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 06a9a75..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index a00dbe5..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,56 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - uses: styfle/cancel-workflow-action@0.11.0 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 550b204..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,44 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: superbrothers/close-pull-request@v3 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 7902a7d..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout the repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index c4e1fd9..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,108 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - uses: actions/upload-artifact@v3 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - uses: distributhor/workflow-webhook@v3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 37ddb4f..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,781 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - uses: actions/checkout@v3 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Format error messages: - - name: 'Replace double quotes with single quotes in rewritten format string error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \; - - # Format string literal error messages: - - name: 'Replace double quotes with single quotes in rewritten string literal error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \; - - # Format code: - - name: 'Replace double quotes with single quotes in inserted `require` calls' - run: | - find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \; - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\"/\"@stdlib\/error-tools-fmtprodmsg\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^0.0.x'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -137,7 +136,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -199,63 +198,63 @@ Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 43f12ad..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index 1cdbcd0..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..a98ce84 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2022 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",v),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..df49759 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;s5MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 63a8e44..af7be53 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.0.6", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.0.x", - "@stdlib/math-base-assert-int32-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-composite": "^0.0.x", - "@stdlib/math-base-assert-is-coprime": "^0.0.x", - "@stdlib/math-base-assert-is-even": "^0.0.x", - "@stdlib/math-base-assert-is-finite": "^0.0.x", - "@stdlib/math-base-assert-is-finitef": "^0.0.x", - "@stdlib/math-base-assert-is-infinite": "^0.0.x", - "@stdlib/math-base-assert-is-infinitef": "^0.0.x", - "@stdlib/math-base-assert-is-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nan": "^0.0.x", - "@stdlib/math-base-assert-is-nanf": "^0.0.x", - "@stdlib/math-base-assert-is-negative-finite": "^0.0.x", - "@stdlib/math-base-assert-is-negative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zero": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.0.x", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.0.x", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-positive-finite": "^0.0.x", - "@stdlib/math-base-assert-is-positive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zero": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-prime": "^0.0.x", - "@stdlib/math-base-assert-is-probability": "^0.0.x", - "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x", - "@stdlib/error-tools-fmtprodmsg": "^0.0.x" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.0.x", - "@stdlib/bench": "^0.0.x", - "@stdlib/boolean-ctor": "^0.0.x", - "@stdlib/constants-float32-max": "^0.0.x", - "@stdlib/constants-float32-ninf": "^0.0.x", - "@stdlib/constants-float32-pinf": "^0.0.x", - "@stdlib/constants-float32-smallest-subnormal": "^0.0.x", - "@stdlib/constants-float64-max": "^0.0.x", - "@stdlib/constants-float64-max-safe-integer": "^0.0.x", - "@stdlib/constants-float64-min-safe-integer": "^0.0.x", - "@stdlib/constants-float64-ninf": "^0.0.x", - "@stdlib/constants-float64-pinf": "^0.0.x", - "@stdlib/constants-float64-smallest-subnormal": "^0.0.x", - "@stdlib/constants-int32-max": "^0.0.x", - "@stdlib/datasets-primes-100k": "^0.0.x", - "@stdlib/math-base-special-floor": "^0.0.x", - "@stdlib/math-base-special-gcd": "^0.0.x", - "@stdlib/math-base-special-log10": "^0.0.x", - "@stdlib/math-base-special-log2": "^0.0.x", - "@stdlib/math-base-special-pow": "^0.0.x", - "@stdlib/math-base-special-round": "^0.0.x", - "@stdlib/math-base-special-sqrt": "^0.0.x", - "@stdlib/math-base-special-trunc": "^0.0.x", - "@stdlib/number-ctor": "^0.0.x", - "@stdlib/number-float64-base-to-float32": "^0.0.x", - "@stdlib/number-float64-base-to-uint32": "^0.0.x", - "@stdlib/random-base-discrete-uniform": "^0.0.x", - "@stdlib/random-base-randu": "^0.0.x", - "@stdlib/utils-keys": "^0.0.x", - "@stdlib/utils-try-require": "^0.0.x", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..cfe5f03 --- /dev/null +++ b/stats.html @@ -0,0 +1,4044 @@ + + + + + + + + RollUp Visualizer + + + +
+ + + + + diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 882f197..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.equal( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 9645ec1fa87a2cee091fd3198bb7ea97731608ff Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 1 Jan 2023 02:51:47 +0000 Subject: [PATCH 032/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c4fc3b5..63a8e44 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.0.x", "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x" + "@stdlib/utils-define-read-only-property": "^0.0.x", + "@stdlib/error-tools-fmtprodmsg": "^0.0.x" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.0.x", @@ -147,4 +148,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} +} \ No newline at end of file From 81a34ac365363d4c596096cfd7625f8c3647c27d Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 1 Jan 2023 12:23:31 +0000 Subject: [PATCH 033/190] Remove files --- index.d.ts | 706 --------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4044 ------------------------------------------------- 4 files changed, 4755 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 9597524..0000000 --- a/index.d.ts +++ /dev/null @@ -1,706 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 2.0 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index a98ce84..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2022 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",v),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index df49759..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;s5MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index cfe5f03..0000000 --- a/stats.html +++ /dev/null @@ -1,4044 +0,0 @@ - - - - - - - - RollUp Visualizer - - - -
- - - - - From 167641586655e6ba31286db98f0a1e3689c1636c Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 1 Jan 2023 12:25:04 +0000 Subject: [PATCH 034/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 49 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 62 - .github/workflows/cancel.yml | 56 - .github/workflows/close_pull_requests.yml | 44 - .github/workflows/examples.yml | 62 - .github/workflows/npm_downloads.yml | 108 - .github/workflows/productionize.yml | 791 ---- .github/workflows/publish.yml | 117 - .github/workflows/test.yml | 92 - .github/workflows/test_bundles.yml | 180 - .github/workflows/test_coverage.yml | 123 - .github/workflows/test_install.yml | 83 - .gitignore | 184 - .npmignore | 227 -- .npmrc | 28 - CHANGELOG.md | 5 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 --- README.md | 99 +- branches.md | 53 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 -- package.json | 111 +- stats.html | 4044 +++++++++++++++++++++ test/test.js | 40 - 34 files changed, 4101 insertions(+), 3548 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0fd4d6c..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 34c86c3..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2023-01-01T01:07:13.489Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 06a9a75..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index a00dbe5..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,56 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - uses: styfle/cancel-workflow-action@0.11.0 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 550b204..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,44 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: superbrothers/close-pull-request@v3 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 7902a7d..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout the repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index c4e1fd9..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,108 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - uses: actions/upload-artifact@v3 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - uses: distributhor/workflow-webhook@v3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index f4eea88..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,791 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - uses: actions/checkout@v3 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Format error messages: - - name: 'Replace double quotes with single quotes in rewritten format string error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \; - - # Format string literal error messages: - - name: 'Replace double quotes with single quotes in rewritten string literal error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \; - - # Format code: - - name: 'Replace double quotes with single quotes in inserted `require` calls' - run: | - find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \; - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\"/\"@stdlib\/error-tools-fmtprodmsg\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^0.0.x'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - uses: actions/checkout@v3 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -137,7 +136,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -199,63 +198,63 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 43f12ad..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index 1cdbcd0..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..acd6787 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",v),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..df49759 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;s5MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 63a8e44..af7be53 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.0.6", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.0.x", - "@stdlib/math-base-assert-int32-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-composite": "^0.0.x", - "@stdlib/math-base-assert-is-coprime": "^0.0.x", - "@stdlib/math-base-assert-is-even": "^0.0.x", - "@stdlib/math-base-assert-is-finite": "^0.0.x", - "@stdlib/math-base-assert-is-finitef": "^0.0.x", - "@stdlib/math-base-assert-is-infinite": "^0.0.x", - "@stdlib/math-base-assert-is-infinitef": "^0.0.x", - "@stdlib/math-base-assert-is-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nan": "^0.0.x", - "@stdlib/math-base-assert-is-nanf": "^0.0.x", - "@stdlib/math-base-assert-is-negative-finite": "^0.0.x", - "@stdlib/math-base-assert-is-negative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zero": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.0.x", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.0.x", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-positive-finite": "^0.0.x", - "@stdlib/math-base-assert-is-positive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zero": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-prime": "^0.0.x", - "@stdlib/math-base-assert-is-probability": "^0.0.x", - "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x", - "@stdlib/error-tools-fmtprodmsg": "^0.0.x" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.0.x", - "@stdlib/bench": "^0.0.x", - "@stdlib/boolean-ctor": "^0.0.x", - "@stdlib/constants-float32-max": "^0.0.x", - "@stdlib/constants-float32-ninf": "^0.0.x", - "@stdlib/constants-float32-pinf": "^0.0.x", - "@stdlib/constants-float32-smallest-subnormal": "^0.0.x", - "@stdlib/constants-float64-max": "^0.0.x", - "@stdlib/constants-float64-max-safe-integer": "^0.0.x", - "@stdlib/constants-float64-min-safe-integer": "^0.0.x", - "@stdlib/constants-float64-ninf": "^0.0.x", - "@stdlib/constants-float64-pinf": "^0.0.x", - "@stdlib/constants-float64-smallest-subnormal": "^0.0.x", - "@stdlib/constants-int32-max": "^0.0.x", - "@stdlib/datasets-primes-100k": "^0.0.x", - "@stdlib/math-base-special-floor": "^0.0.x", - "@stdlib/math-base-special-gcd": "^0.0.x", - "@stdlib/math-base-special-log10": "^0.0.x", - "@stdlib/math-base-special-log2": "^0.0.x", - "@stdlib/math-base-special-pow": "^0.0.x", - "@stdlib/math-base-special-round": "^0.0.x", - "@stdlib/math-base-special-sqrt": "^0.0.x", - "@stdlib/math-base-special-trunc": "^0.0.x", - "@stdlib/number-ctor": "^0.0.x", - "@stdlib/number-float64-base-to-float32": "^0.0.x", - "@stdlib/number-float64-base-to-uint32": "^0.0.x", - "@stdlib/random-base-discrete-uniform": "^0.0.x", - "@stdlib/random-base-randu": "^0.0.x", - "@stdlib/utils-keys": "^0.0.x", - "@stdlib/utils-try-require": "^0.0.x", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..eb49290 --- /dev/null +++ b/stats.html @@ -0,0 +1,4044 @@ + + + + + + + + RollUp Visualizer + + + +
+ + + + + diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 882f197..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.equal( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 11022576dd54f2cc79c35ce8c90ddf650343673b Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 19 Jan 2023 23:03:43 +0000 Subject: [PATCH 035/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c4fc3b5..63a8e44 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.0.x", "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x" + "@stdlib/utils-define-read-only-property": "^0.0.x", + "@stdlib/error-tools-fmtprodmsg": "^0.0.x" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.0.x", @@ -147,4 +148,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} +} \ No newline at end of file From 2ed386ea891855d9c172f38c73bd96581f842220 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 19 Jan 2023 23:04:17 +0000 Subject: [PATCH 036/190] Remove files --- index.d.ts | 706 --------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4044 ------------------------------------------------- 4 files changed, 4755 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 9597524..0000000 --- a/index.d.ts +++ /dev/null @@ -1,706 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 2.0 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index acd6787..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",v),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index df49759..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;s5MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index eb49290..0000000 --- a/stats.html +++ /dev/null @@ -1,4044 +0,0 @@ - - - - - - - - RollUp Visualizer - - - -
- - - - - From 349a87f76418dfe439aceea223bd5771d1a949ed Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 19 Jan 2023 23:05:59 +0000 Subject: [PATCH 037/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 49 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 62 - .github/workflows/cancel.yml | 56 - .github/workflows/close_pull_requests.yml | 44 - .github/workflows/examples.yml | 62 - .github/workflows/npm_downloads.yml | 108 - .github/workflows/productionize.yml | 791 ---- .github/workflows/publish.yml | 117 - .github/workflows/test.yml | 92 - .github/workflows/test_bundles.yml | 180 - .github/workflows/test_coverage.yml | 123 - .github/workflows/test_install.yml | 83 - .gitignore | 184 - .npmignore | 227 -- .npmrc | 28 - CHANGELOG.md | 5 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 --- README.md | 99 +- branches.md | 53 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 -- package.json | 111 +- stats.html | 4044 +++++++++++++++++++++ test/test.js | 40 - 33 files changed, 4101 insertions(+), 3547 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0fd4d6c..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 06a9a75..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index a00dbe5..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,56 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - uses: styfle/cancel-workflow-action@0.11.0 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 550b204..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,44 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: superbrothers/close-pull-request@v3 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 7902a7d..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout the repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index c4e1fd9..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,108 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - uses: actions/upload-artifact@v3 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - uses: distributhor/workflow-webhook@v3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index f4eea88..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,791 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - uses: actions/checkout@v3 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Format error messages: - - name: 'Replace double quotes with single quotes in rewritten format string error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \; - - # Format string literal error messages: - - name: 'Replace double quotes with single quotes in rewritten string literal error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \; - - # Format code: - - name: 'Replace double quotes with single quotes in inserted `require` calls' - run: | - find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \; - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\"/\"@stdlib\/error-tools-fmtprodmsg\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^0.0.x'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - uses: actions/checkout@v3 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -137,7 +136,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -199,63 +198,63 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 43f12ad..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index 1cdbcd0..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..acd6787 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",v),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..df49759 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;s5MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 63a8e44..af7be53 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.0.6", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.0.x", - "@stdlib/math-base-assert-int32-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-composite": "^0.0.x", - "@stdlib/math-base-assert-is-coprime": "^0.0.x", - "@stdlib/math-base-assert-is-even": "^0.0.x", - "@stdlib/math-base-assert-is-finite": "^0.0.x", - "@stdlib/math-base-assert-is-finitef": "^0.0.x", - "@stdlib/math-base-assert-is-infinite": "^0.0.x", - "@stdlib/math-base-assert-is-infinitef": "^0.0.x", - "@stdlib/math-base-assert-is-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nan": "^0.0.x", - "@stdlib/math-base-assert-is-nanf": "^0.0.x", - "@stdlib/math-base-assert-is-negative-finite": "^0.0.x", - "@stdlib/math-base-assert-is-negative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zero": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.0.x", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.0.x", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-positive-finite": "^0.0.x", - "@stdlib/math-base-assert-is-positive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zero": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-prime": "^0.0.x", - "@stdlib/math-base-assert-is-probability": "^0.0.x", - "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x", - "@stdlib/error-tools-fmtprodmsg": "^0.0.x" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.0.x", - "@stdlib/bench": "^0.0.x", - "@stdlib/boolean-ctor": "^0.0.x", - "@stdlib/constants-float32-max": "^0.0.x", - "@stdlib/constants-float32-ninf": "^0.0.x", - "@stdlib/constants-float32-pinf": "^0.0.x", - "@stdlib/constants-float32-smallest-subnormal": "^0.0.x", - "@stdlib/constants-float64-max": "^0.0.x", - "@stdlib/constants-float64-max-safe-integer": "^0.0.x", - "@stdlib/constants-float64-min-safe-integer": "^0.0.x", - "@stdlib/constants-float64-ninf": "^0.0.x", - "@stdlib/constants-float64-pinf": "^0.0.x", - "@stdlib/constants-float64-smallest-subnormal": "^0.0.x", - "@stdlib/constants-int32-max": "^0.0.x", - "@stdlib/datasets-primes-100k": "^0.0.x", - "@stdlib/math-base-special-floor": "^0.0.x", - "@stdlib/math-base-special-gcd": "^0.0.x", - "@stdlib/math-base-special-log10": "^0.0.x", - "@stdlib/math-base-special-log2": "^0.0.x", - "@stdlib/math-base-special-pow": "^0.0.x", - "@stdlib/math-base-special-round": "^0.0.x", - "@stdlib/math-base-special-sqrt": "^0.0.x", - "@stdlib/math-base-special-trunc": "^0.0.x", - "@stdlib/number-ctor": "^0.0.x", - "@stdlib/number-float64-base-to-float32": "^0.0.x", - "@stdlib/number-float64-base-to-uint32": "^0.0.x", - "@stdlib/random-base-discrete-uniform": "^0.0.x", - "@stdlib/random-base-randu": "^0.0.x", - "@stdlib/utils-keys": "^0.0.x", - "@stdlib/utils-try-require": "^0.0.x", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..f9af7d3 --- /dev/null +++ b/stats.html @@ -0,0 +1,4044 @@ + + + + + + + + RollUp Visualizer + + + +
+ + + + + diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 882f197..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.equal( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From e750479494fe490c3f47fbfbf6a1f5342d8ae7ba Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Wed, 1 Feb 2023 03:48:38 +0000 Subject: [PATCH 038/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c4fc3b5..63a8e44 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.0.x", "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x" + "@stdlib/utils-define-read-only-property": "^0.0.x", + "@stdlib/error-tools-fmtprodmsg": "^0.0.x" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.0.x", @@ -147,4 +148,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} +} \ No newline at end of file From da9eb1c08e8dea298056a37aa37cc27a0d23a3de Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Wed, 1 Feb 2023 12:04:27 +0000 Subject: [PATCH 039/190] Remove files --- index.d.ts | 706 --------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4044 ------------------------------------------------- 4 files changed, 4755 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 9597524..0000000 --- a/index.d.ts +++ /dev/null @@ -1,706 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 2.0 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index acd6787..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",v),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index df49759..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;s5MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index f9af7d3..0000000 --- a/stats.html +++ /dev/null @@ -1,4044 +0,0 @@ - - - - - - - - RollUp Visualizer - - - -
- - - - - From 61125958fda384294642bb8a8bf8aefeabd9a5ce Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Wed, 1 Feb 2023 12:05:26 +0000 Subject: [PATCH 040/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 49 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 62 - .github/workflows/cancel.yml | 56 - .github/workflows/close_pull_requests.yml | 44 - .github/workflows/examples.yml | 62 - .github/workflows/npm_downloads.yml | 108 - .github/workflows/productionize.yml | 791 --- .github/workflows/publish.yml | 117 - .github/workflows/test.yml | 92 - .github/workflows/test_bundles.yml | 180 - .github/workflows/test_coverage.yml | 123 - .github/workflows/test_install.yml | 83 - .gitignore | 184 - .npmignore | 227 - .npmrc | 28 - CHANGELOG.md | 5 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 99 +- branches.md | 53 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 - package.json | 111 +- stats.html | 6177 +++++++++++++++++++++ test/test.js | 40 - 34 files changed, 6234 insertions(+), 3548 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0fd4d6c..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 6aa4870..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2023-02-01T01:27:29.267Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 06a9a75..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index a00dbe5..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,56 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - uses: styfle/cancel-workflow-action@0.11.0 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 550b204..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,44 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: superbrothers/close-pull-request@v3 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 7902a7d..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout the repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index c4e1fd9..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,108 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - uses: actions/upload-artifact@v3 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - uses: distributhor/workflow-webhook@v3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index f4eea88..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,791 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - uses: actions/checkout@v3 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Format error messages: - - name: 'Replace double quotes with single quotes in rewritten format string error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \; - - # Format string literal error messages: - - name: 'Replace double quotes with single quotes in rewritten string literal error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \; - - # Format code: - - name: 'Replace double quotes with single quotes in inserted `require` calls' - run: | - find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \; - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\"/\"@stdlib\/error-tools-fmtprodmsg\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^0.0.x'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - uses: actions/checkout@v3 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -137,7 +136,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -199,63 +198,63 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 43f12ad..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index 1cdbcd0..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..acd6787 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",v),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..df49759 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;s5MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 63a8e44..af7be53 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.0.6", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.0.x", - "@stdlib/math-base-assert-int32-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-composite": "^0.0.x", - "@stdlib/math-base-assert-is-coprime": "^0.0.x", - "@stdlib/math-base-assert-is-even": "^0.0.x", - "@stdlib/math-base-assert-is-finite": "^0.0.x", - "@stdlib/math-base-assert-is-finitef": "^0.0.x", - "@stdlib/math-base-assert-is-infinite": "^0.0.x", - "@stdlib/math-base-assert-is-infinitef": "^0.0.x", - "@stdlib/math-base-assert-is-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nan": "^0.0.x", - "@stdlib/math-base-assert-is-nanf": "^0.0.x", - "@stdlib/math-base-assert-is-negative-finite": "^0.0.x", - "@stdlib/math-base-assert-is-negative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zero": "^0.0.x", - "@stdlib/math-base-assert-is-negative-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.0.x", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.0.x", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.0.x", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-odd": "^0.0.x", - "@stdlib/math-base-assert-is-positive-finite": "^0.0.x", - "@stdlib/math-base-assert-is-positive-integer": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zero": "^0.0.x", - "@stdlib/math-base-assert-is-positive-zerof": "^0.0.x", - "@stdlib/math-base-assert-is-prime": "^0.0.x", - "@stdlib/math-base-assert-is-probability": "^0.0.x", - "@stdlib/math-base-assert-is-safe-integer": "^0.0.x", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.x", - "@stdlib/utils-define-read-only-property": "^0.0.x", - "@stdlib/error-tools-fmtprodmsg": "^0.0.x" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.0.x", - "@stdlib/bench": "^0.0.x", - "@stdlib/boolean-ctor": "^0.0.x", - "@stdlib/constants-float32-max": "^0.0.x", - "@stdlib/constants-float32-ninf": "^0.0.x", - "@stdlib/constants-float32-pinf": "^0.0.x", - "@stdlib/constants-float32-smallest-subnormal": "^0.0.x", - "@stdlib/constants-float64-max": "^0.0.x", - "@stdlib/constants-float64-max-safe-integer": "^0.0.x", - "@stdlib/constants-float64-min-safe-integer": "^0.0.x", - "@stdlib/constants-float64-ninf": "^0.0.x", - "@stdlib/constants-float64-pinf": "^0.0.x", - "@stdlib/constants-float64-smallest-subnormal": "^0.0.x", - "@stdlib/constants-int32-max": "^0.0.x", - "@stdlib/datasets-primes-100k": "^0.0.x", - "@stdlib/math-base-special-floor": "^0.0.x", - "@stdlib/math-base-special-gcd": "^0.0.x", - "@stdlib/math-base-special-log10": "^0.0.x", - "@stdlib/math-base-special-log2": "^0.0.x", - "@stdlib/math-base-special-pow": "^0.0.x", - "@stdlib/math-base-special-round": "^0.0.x", - "@stdlib/math-base-special-sqrt": "^0.0.x", - "@stdlib/math-base-special-trunc": "^0.0.x", - "@stdlib/number-ctor": "^0.0.x", - "@stdlib/number-float64-base-to-float32": "^0.0.x", - "@stdlib/number-float64-base-to-uint32": "^0.0.x", - "@stdlib/random-base-discrete-uniform": "^0.0.x", - "@stdlib/random-base-randu": "^0.0.x", - "@stdlib/utils-keys": "^0.0.x", - "@stdlib/utils-try-require": "^0.0.x", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "patreon", "url": "https://www.patreon.com/athan" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..ded789e --- /dev/null +++ b/stats.html @@ -0,0 +1,6177 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 882f197..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.equal( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 53fd6b400111c46a9cd31354ec0529836b6b1d53 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Wed, 1 Mar 2023 05:11:13 +0000 Subject: [PATCH 041/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7411403..e46cb41 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.0.7", "@stdlib/math-base-assert-is-safe-integer": "^0.0.7", "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.7", - "@stdlib/utils-define-read-only-property": "^0.0.8" + "@stdlib/utils-define-read-only-property": "^0.0.8", + "@stdlib/error-tools-fmtprodmsg": "^0.0.2" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.0.8", @@ -147,4 +148,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From 7fbf7e5cbcf8ec55e31d5d997e9b832ab7c8801a Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Wed, 1 Mar 2023 12:36:38 +0000 Subject: [PATCH 042/190] Remove files --- index.d.ts | 706 ------ index.mjs | 4 - index.mjs.map | 1 - stats.html | 6177 ------------------------------------------------- 4 files changed, 6888 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 9597524..0000000 --- a/index.d.ts +++ /dev/null @@ -1,706 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 2.0 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index acd6787..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",v),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index df49759..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;s5MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index ded789e..0000000 --- a/stats.html +++ /dev/null @@ -1,6177 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From 9b5771d5068534b94f3175eafcc9c4eb94ba7d55 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Wed, 1 Mar 2023 12:38:02 +0000 Subject: [PATCH 043/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 49 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 62 - .github/workflows/cancel.yml | 56 - .github/workflows/close_pull_requests.yml | 44 - .github/workflows/examples.yml | 62 - .github/workflows/npm_downloads.yml | 108 - .github/workflows/productionize.yml | 798 --- .github/workflows/publish.yml | 236 - .github/workflows/test.yml | 97 - .github/workflows/test_bundles.yml | 180 - .github/workflows/test_coverage.yml | 123 - .github/workflows/test_install.yml | 83 - .gitignore | 188 - .npmignore | 227 - .npmrc | 28 - CHANGELOG.md | 5 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 99 +- branches.md | 53 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 - package.json | 111 +- stats.html | 6177 +++++++++++++++++++++ test/test.js | 40 - 34 files changed, 6234 insertions(+), 3683 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0fd4d6c..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index e3476ec..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2023-03-01T03:20:01.550Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 06a9a75..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index a00dbe5..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,56 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - uses: styfle/cancel-workflow-action@0.11.0 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 550b204..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,44 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: superbrothers/close-pull-request@v3 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 7902a7d..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout the repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index c4e1fd9..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,108 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - uses: actions/upload-artifact@v3 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - uses: distributhor/workflow-webhook@v3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 3e8e2db..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,798 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - uses: actions/checkout@v3 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Format error messages: - - name: 'Replace double quotes with single quotes in rewritten format string error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \; - - # Format string literal error messages: - - name: 'Replace double quotes with single quotes in rewritten string literal error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \; - - # Format code: - - name: 'Replace double quotes with single quotes in inserted `require` calls' - run: | - find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \; - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - uses: actions/checkout@v3 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -137,7 +136,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -199,63 +198,63 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 768a8af..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index 1cdbcd0..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..acd6787 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",v),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..df49759 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;s5MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index e46cb41..3ed6250 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.0.6", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.0.7", - "@stdlib/math-base-assert-int32-is-odd": "^0.0.7", - "@stdlib/math-base-assert-is-composite": "^0.0.7", - "@stdlib/math-base-assert-is-coprime": "^0.0.7", - "@stdlib/math-base-assert-is-even": "^0.0.7", - "@stdlib/math-base-assert-is-finite": "^0.0.7", - "@stdlib/math-base-assert-is-finitef": "^0.0.6", - "@stdlib/math-base-assert-is-infinite": "^0.0.9", - "@stdlib/math-base-assert-is-infinitef": "^0.0.7", - "@stdlib/math-base-assert-is-integer": "^0.0.7", - "@stdlib/math-base-assert-is-nan": "^0.0.8", - "@stdlib/math-base-assert-is-nanf": "^0.0.8", - "@stdlib/math-base-assert-is-negative-finite": "^0.0.1", - "@stdlib/math-base-assert-is-negative-integer": "^0.0.7", - "@stdlib/math-base-assert-is-negative-zero": "^0.0.8", - "@stdlib/math-base-assert-is-negative-zerof": "^0.0.6", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.0.1", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.0.7", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.0.1", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.0.7", - "@stdlib/math-base-assert-is-odd": "^0.0.7", - "@stdlib/math-base-assert-is-positive-finite": "^0.0.2", - "@stdlib/math-base-assert-is-positive-integer": "^0.0.7", - "@stdlib/math-base-assert-is-positive-zero": "^0.0.8", - "@stdlib/math-base-assert-is-positive-zerof": "^0.0.6", - "@stdlib/math-base-assert-is-prime": "^0.0.7", - "@stdlib/math-base-assert-is-probability": "^0.0.7", - "@stdlib/math-base-assert-is-safe-integer": "^0.0.7", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.7", - "@stdlib/utils-define-read-only-property": "^0.0.8", - "@stdlib/error-tools-fmtprodmsg": "^0.0.2" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.0.8", - "@stdlib/bench": "^0.0.12", - "@stdlib/boolean-ctor": "^0.0.1", - "@stdlib/constants-float32-max": "^0.0.8", - "@stdlib/constants-float32-ninf": "^0.0.7", - "@stdlib/constants-float32-pinf": "^0.0.7", - "@stdlib/constants-float32-smallest-subnormal": "^0.0.8", - "@stdlib/constants-float64-max": "^0.0.8", - "@stdlib/constants-float64-max-safe-integer": "^0.0.8", - "@stdlib/constants-float64-min-safe-integer": "^0.0.8", - "@stdlib/constants-float64-ninf": "^0.0.8", - "@stdlib/constants-float64-pinf": "^0.0.8", - "@stdlib/constants-float64-smallest-subnormal": "^0.0.8", - "@stdlib/constants-int32-max": "^0.0.7", - "@stdlib/datasets-primes-100k": "^0.0.9", - "@stdlib/math-base-special-floor": "^0.0.8", - "@stdlib/math-base-special-gcd": "^0.0.7", - "@stdlib/math-base-special-log10": "^0.0.6", - "@stdlib/math-base-special-log2": "^0.0.7", - "@stdlib/math-base-special-pow": "^0.0.7", - "@stdlib/math-base-special-round": "^0.0.7", - "@stdlib/math-base-special-sqrt": "^0.0.8", - "@stdlib/math-base-special-trunc": "^0.0.8", - "@stdlib/number-ctor": "^0.0.7", - "@stdlib/number-float64-base-to-float32": "^0.0.7", - "@stdlib/number-float64-base-to-uint32": "^0.0.7", - "@stdlib/random-base-discrete-uniform": "^0.0.6", - "@stdlib/random-base-randu": "^0.0.8", - "@stdlib/utils-keys": "^0.0.7", - "@stdlib/utils-try-require": "^0.0.7", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..703ea60 --- /dev/null +++ b/stats.html @@ -0,0 +1,6177 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 882f197..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.equal( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 770be219081067798bd3e94d721f1f20244f814d Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 1 Apr 2023 05:37:13 +0000 Subject: [PATCH 044/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7411403..e46cb41 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.0.7", "@stdlib/math-base-assert-is-safe-integer": "^0.0.7", "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.7", - "@stdlib/utils-define-read-only-property": "^0.0.8" + "@stdlib/utils-define-read-only-property": "^0.0.8", + "@stdlib/error-tools-fmtprodmsg": "^0.0.2" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.0.8", @@ -147,4 +148,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From 46d7211d911c5cc37b1363778bbce3c020dc2878 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 1 Apr 2023 12:02:29 +0000 Subject: [PATCH 045/190] Remove files --- index.d.ts | 706 ------ index.mjs | 4 - index.mjs.map | 1 - stats.html | 6177 ------------------------------------------------- 4 files changed, 6888 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 9597524..0000000 --- a/index.d.ts +++ /dev/null @@ -1,706 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 2.0 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index acd6787..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",v),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index df49759..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;s5MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 703ea60..0000000 --- a/stats.html +++ /dev/null @@ -1,6177 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From a7caaebc6600048dcc58864075a4ae6328b113b8 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 1 Apr 2023 12:03:56 +0000 Subject: [PATCH 046/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 49 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 62 - .github/workflows/cancel.yml | 56 - .github/workflows/close_pull_requests.yml | 44 - .github/workflows/examples.yml | 62 - .github/workflows/npm_downloads.yml | 108 - .github/workflows/productionize.yml | 798 --- .github/workflows/publish.yml | 242 - .github/workflows/test.yml | 97 - .github/workflows/test_bundles.yml | 180 - .github/workflows/test_coverage.yml | 123 - .github/workflows/test_install.yml | 83 - .gitignore | 188 - .npmignore | 227 - .npmrc | 28 - CHANGELOG.md | 5 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 99 +- branches.md | 53 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 - package.json | 111 +- stats.html | 6177 +++++++++++++++++++++ test/test.js | 40 - 34 files changed, 6234 insertions(+), 3689 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0fd4d6c..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 8ec31a8..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2023-04-01T03:47:06.930Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 06a9a75..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index a00dbe5..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,56 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - uses: styfle/cancel-workflow-action@0.11.0 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 550b204..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,44 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: superbrothers/close-pull-request@v3 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 7902a7d..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout the repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index c4e1fd9..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,108 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - uses: actions/upload-artifact@v3 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - uses: distributhor/workflow-webhook@v3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 3e8e2db..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,798 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - uses: actions/checkout@v3 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Format error messages: - - name: 'Replace double quotes with single quotes in rewritten format string error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \; - - # Format string literal error messages: - - name: 'Replace double quotes with single quotes in rewritten string literal error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \; - - # Format code: - - name: 'Replace double quotes with single quotes in inserted `require` calls' - run: | - find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \; - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - uses: actions/checkout@v3 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -137,7 +136,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -199,63 +198,63 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 768a8af..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index 1cdbcd0..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..acd6787 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",v),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..df49759 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;s5MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index e46cb41..3ed6250 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.0.6", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.0.7", - "@stdlib/math-base-assert-int32-is-odd": "^0.0.7", - "@stdlib/math-base-assert-is-composite": "^0.0.7", - "@stdlib/math-base-assert-is-coprime": "^0.0.7", - "@stdlib/math-base-assert-is-even": "^0.0.7", - "@stdlib/math-base-assert-is-finite": "^0.0.7", - "@stdlib/math-base-assert-is-finitef": "^0.0.6", - "@stdlib/math-base-assert-is-infinite": "^0.0.9", - "@stdlib/math-base-assert-is-infinitef": "^0.0.7", - "@stdlib/math-base-assert-is-integer": "^0.0.7", - "@stdlib/math-base-assert-is-nan": "^0.0.8", - "@stdlib/math-base-assert-is-nanf": "^0.0.8", - "@stdlib/math-base-assert-is-negative-finite": "^0.0.1", - "@stdlib/math-base-assert-is-negative-integer": "^0.0.7", - "@stdlib/math-base-assert-is-negative-zero": "^0.0.8", - "@stdlib/math-base-assert-is-negative-zerof": "^0.0.6", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.0.1", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.0.7", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.0.1", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.0.7", - "@stdlib/math-base-assert-is-odd": "^0.0.7", - "@stdlib/math-base-assert-is-positive-finite": "^0.0.2", - "@stdlib/math-base-assert-is-positive-integer": "^0.0.7", - "@stdlib/math-base-assert-is-positive-zero": "^0.0.8", - "@stdlib/math-base-assert-is-positive-zerof": "^0.0.6", - "@stdlib/math-base-assert-is-prime": "^0.0.7", - "@stdlib/math-base-assert-is-probability": "^0.0.7", - "@stdlib/math-base-assert-is-safe-integer": "^0.0.7", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.7", - "@stdlib/utils-define-read-only-property": "^0.0.8", - "@stdlib/error-tools-fmtprodmsg": "^0.0.2" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.0.8", - "@stdlib/bench": "^0.0.12", - "@stdlib/boolean-ctor": "^0.0.1", - "@stdlib/constants-float32-max": "^0.0.8", - "@stdlib/constants-float32-ninf": "^0.0.7", - "@stdlib/constants-float32-pinf": "^0.0.7", - "@stdlib/constants-float32-smallest-subnormal": "^0.0.8", - "@stdlib/constants-float64-max": "^0.0.8", - "@stdlib/constants-float64-max-safe-integer": "^0.0.8", - "@stdlib/constants-float64-min-safe-integer": "^0.0.8", - "@stdlib/constants-float64-ninf": "^0.0.8", - "@stdlib/constants-float64-pinf": "^0.0.8", - "@stdlib/constants-float64-smallest-subnormal": "^0.0.8", - "@stdlib/constants-int32-max": "^0.0.7", - "@stdlib/datasets-primes-100k": "^0.0.9", - "@stdlib/math-base-special-floor": "^0.0.8", - "@stdlib/math-base-special-gcd": "^0.0.7", - "@stdlib/math-base-special-log10": "^0.0.6", - "@stdlib/math-base-special-log2": "^0.0.7", - "@stdlib/math-base-special-pow": "^0.0.7", - "@stdlib/math-base-special-round": "^0.0.7", - "@stdlib/math-base-special-sqrt": "^0.0.8", - "@stdlib/math-base-special-trunc": "^0.0.8", - "@stdlib/number-ctor": "^0.0.7", - "@stdlib/number-float64-base-to-float32": "^0.0.7", - "@stdlib/number-float64-base-to-uint32": "^0.0.7", - "@stdlib/random-base-discrete-uniform": "^0.0.6", - "@stdlib/random-base-randu": "^0.0.8", - "@stdlib/utils-keys": "^0.0.7", - "@stdlib/utils-try-require": "^0.0.7", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..b117d10 --- /dev/null +++ b/stats.html @@ -0,0 +1,6177 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 882f197..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.equal( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 7aa2c519c8d58ec4a1b2da58552118c24794289d Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 1 May 2023 05:25:08 +0000 Subject: [PATCH 047/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7411403..e46cb41 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.0.7", "@stdlib/math-base-assert-is-safe-integer": "^0.0.7", "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.7", - "@stdlib/utils-define-read-only-property": "^0.0.8" + "@stdlib/utils-define-read-only-property": "^0.0.8", + "@stdlib/error-tools-fmtprodmsg": "^0.0.2" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.0.8", @@ -147,4 +148,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From 2d922d563530272146d16468b1092944d7f912ca Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 1 May 2023 11:48:14 +0000 Subject: [PATCH 048/190] Remove files --- index.d.ts | 706 ------ index.mjs | 4 - index.mjs.map | 1 - stats.html | 6177 ------------------------------------------------- 4 files changed, 6888 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 9597524..0000000 --- a/index.d.ts +++ /dev/null @@ -1,706 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 2.0 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index acd6787..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",v),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index df49759..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;s5MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index b117d10..0000000 --- a/stats.html +++ /dev/null @@ -1,6177 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From 027cf9a8487eaf365240641ec51ffed21b3fb6c4 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 1 May 2023 11:49:32 +0000 Subject: [PATCH 049/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 49 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 62 - .github/workflows/cancel.yml | 56 - .github/workflows/close_pull_requests.yml | 44 - .github/workflows/examples.yml | 62 - .github/workflows/npm_downloads.yml | 108 - .github/workflows/productionize.yml | 798 --- .github/workflows/publish.yml | 242 - .github/workflows/test.yml | 97 - .github/workflows/test_bundles.yml | 180 - .github/workflows/test_coverage.yml | 123 - .github/workflows/test_install.yml | 83 - .gitignore | 188 - .npmignore | 227 - .npmrc | 28 - CHANGELOG.md | 5 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 99 +- branches.md | 53 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 - package.json | 111 +- stats.html | 6177 +++++++++++++++++++++ test/test.js | 40 - 34 files changed, 6234 insertions(+), 3689 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0fd4d6c..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index f6119d4..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2023-05-01T03:36:20.197Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 06a9a75..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index a00dbe5..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,56 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - uses: styfle/cancel-workflow-action@0.11.0 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 550b204..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,44 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: superbrothers/close-pull-request@v3 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 7902a7d..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout the repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index c4e1fd9..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,108 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - uses: actions/upload-artifact@v3 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - uses: distributhor/workflow-webhook@v3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 3e8e2db..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,798 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - uses: actions/checkout@v3 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Format error messages: - - name: 'Replace double quotes with single quotes in rewritten format string error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \; - - # Format string literal error messages: - - name: 'Replace double quotes with single quotes in rewritten string literal error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \; - - # Format code: - - name: 'Replace double quotes with single quotes in inserted `require` calls' - run: | - find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \; - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - uses: actions/checkout@v3 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -137,7 +136,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -199,63 +198,63 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 768a8af..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index 1cdbcd0..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..acd6787 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",v),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..df49759 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;s5MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index e46cb41..3ed6250 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.0.6", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.0.7", - "@stdlib/math-base-assert-int32-is-odd": "^0.0.7", - "@stdlib/math-base-assert-is-composite": "^0.0.7", - "@stdlib/math-base-assert-is-coprime": "^0.0.7", - "@stdlib/math-base-assert-is-even": "^0.0.7", - "@stdlib/math-base-assert-is-finite": "^0.0.7", - "@stdlib/math-base-assert-is-finitef": "^0.0.6", - "@stdlib/math-base-assert-is-infinite": "^0.0.9", - "@stdlib/math-base-assert-is-infinitef": "^0.0.7", - "@stdlib/math-base-assert-is-integer": "^0.0.7", - "@stdlib/math-base-assert-is-nan": "^0.0.8", - "@stdlib/math-base-assert-is-nanf": "^0.0.8", - "@stdlib/math-base-assert-is-negative-finite": "^0.0.1", - "@stdlib/math-base-assert-is-negative-integer": "^0.0.7", - "@stdlib/math-base-assert-is-negative-zero": "^0.0.8", - "@stdlib/math-base-assert-is-negative-zerof": "^0.0.6", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.0.1", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.0.7", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.0.1", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.0.7", - "@stdlib/math-base-assert-is-odd": "^0.0.7", - "@stdlib/math-base-assert-is-positive-finite": "^0.0.2", - "@stdlib/math-base-assert-is-positive-integer": "^0.0.7", - "@stdlib/math-base-assert-is-positive-zero": "^0.0.8", - "@stdlib/math-base-assert-is-positive-zerof": "^0.0.6", - "@stdlib/math-base-assert-is-prime": "^0.0.7", - "@stdlib/math-base-assert-is-probability": "^0.0.7", - "@stdlib/math-base-assert-is-safe-integer": "^0.0.7", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.7", - "@stdlib/utils-define-read-only-property": "^0.0.8", - "@stdlib/error-tools-fmtprodmsg": "^0.0.2" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.0.8", - "@stdlib/bench": "^0.0.12", - "@stdlib/boolean-ctor": "^0.0.1", - "@stdlib/constants-float32-max": "^0.0.8", - "@stdlib/constants-float32-ninf": "^0.0.7", - "@stdlib/constants-float32-pinf": "^0.0.7", - "@stdlib/constants-float32-smallest-subnormal": "^0.0.8", - "@stdlib/constants-float64-max": "^0.0.8", - "@stdlib/constants-float64-max-safe-integer": "^0.0.8", - "@stdlib/constants-float64-min-safe-integer": "^0.0.8", - "@stdlib/constants-float64-ninf": "^0.0.8", - "@stdlib/constants-float64-pinf": "^0.0.8", - "@stdlib/constants-float64-smallest-subnormal": "^0.0.8", - "@stdlib/constants-int32-max": "^0.0.7", - "@stdlib/datasets-primes-100k": "^0.0.9", - "@stdlib/math-base-special-floor": "^0.0.8", - "@stdlib/math-base-special-gcd": "^0.0.7", - "@stdlib/math-base-special-log10": "^0.0.6", - "@stdlib/math-base-special-log2": "^0.0.7", - "@stdlib/math-base-special-pow": "^0.0.7", - "@stdlib/math-base-special-round": "^0.0.7", - "@stdlib/math-base-special-sqrt": "^0.0.8", - "@stdlib/math-base-special-trunc": "^0.0.8", - "@stdlib/number-ctor": "^0.0.7", - "@stdlib/number-float64-base-to-float32": "^0.0.7", - "@stdlib/number-float64-base-to-uint32": "^0.0.7", - "@stdlib/random-base-discrete-uniform": "^0.0.6", - "@stdlib/random-base-randu": "^0.0.8", - "@stdlib/utils-keys": "^0.0.7", - "@stdlib/utils-try-require": "^0.0.7", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..9f451ab --- /dev/null +++ b/stats.html @@ -0,0 +1,6177 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 882f197..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.equal( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 4a6c57c44500112f06eff3a55a7e0bf6205eed79 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 1 Jun 2023 05:09:00 +0000 Subject: [PATCH 050/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7411403..e46cb41 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.0.7", "@stdlib/math-base-assert-is-safe-integer": "^0.0.7", "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.7", - "@stdlib/utils-define-read-only-property": "^0.0.8" + "@stdlib/utils-define-read-only-property": "^0.0.8", + "@stdlib/error-tools-fmtprodmsg": "^0.0.2" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.0.8", @@ -147,4 +148,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From 51268c121dc37d9711360d554b6367c5b2902b02 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 1 Jun 2023 12:13:46 +0000 Subject: [PATCH 051/190] Remove files --- index.d.ts | 706 ------ index.mjs | 4 - index.mjs.map | 1 - stats.html | 6177 ------------------------------------------------- 4 files changed, 6888 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 9597524..0000000 --- a/index.d.ts +++ /dev/null @@ -1,706 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 2.0 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index acd6787..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",v),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index df49759..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;s5MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 9f451ab..0000000 --- a/stats.html +++ /dev/null @@ -1,6177 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From 655b50a5beb74200273bcfdbf17e17c49a8c0f3b Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 1 Jun 2023 12:15:00 +0000 Subject: [PATCH 052/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 49 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 62 - .github/workflows/cancel.yml | 56 - .github/workflows/close_pull_requests.yml | 44 - .github/workflows/examples.yml | 62 - .github/workflows/npm_downloads.yml | 108 - .github/workflows/productionize.yml | 798 --- .github/workflows/publish.yml | 242 - .github/workflows/test.yml | 97 - .github/workflows/test_bundles.yml | 180 - .github/workflows/test_coverage.yml | 123 - .github/workflows/test_install.yml | 83 - .gitignore | 188 - .npmignore | 227 - .npmrc | 28 - CHANGELOG.md | 5 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 99 +- branches.md | 53 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 - package.json | 111 +- stats.html | 6177 +++++++++++++++++++++ test/test.js | 40 - 34 files changed, 6234 insertions(+), 3689 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0fd4d6c..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 06118c0..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2023-06-01T03:20:26.922Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 06a9a75..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index a00dbe5..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,56 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - uses: styfle/cancel-workflow-action@0.11.0 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 550b204..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,44 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: superbrothers/close-pull-request@v3 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 7902a7d..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout the repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index c4e1fd9..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,108 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - uses: actions/upload-artifact@v3 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - uses: distributhor/workflow-webhook@v3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 3e8e2db..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,798 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - uses: actions/checkout@v3 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Format error messages: - - name: 'Replace double quotes with single quotes in rewritten format string error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \; - - # Format string literal error messages: - - name: 'Replace double quotes with single quotes in rewritten string literal error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \; - - # Format code: - - name: 'Replace double quotes with single quotes in inserted `require` calls' - run: | - find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \; - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - uses: actions/checkout@v3 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -137,7 +136,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -199,63 +198,63 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 768a8af..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index 1cdbcd0..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..acd6787 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",v),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..df49759 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;s5MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index e46cb41..3ed6250 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.0.6", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.0.7", - "@stdlib/math-base-assert-int32-is-odd": "^0.0.7", - "@stdlib/math-base-assert-is-composite": "^0.0.7", - "@stdlib/math-base-assert-is-coprime": "^0.0.7", - "@stdlib/math-base-assert-is-even": "^0.0.7", - "@stdlib/math-base-assert-is-finite": "^0.0.7", - "@stdlib/math-base-assert-is-finitef": "^0.0.6", - "@stdlib/math-base-assert-is-infinite": "^0.0.9", - "@stdlib/math-base-assert-is-infinitef": "^0.0.7", - "@stdlib/math-base-assert-is-integer": "^0.0.7", - "@stdlib/math-base-assert-is-nan": "^0.0.8", - "@stdlib/math-base-assert-is-nanf": "^0.0.8", - "@stdlib/math-base-assert-is-negative-finite": "^0.0.1", - "@stdlib/math-base-assert-is-negative-integer": "^0.0.7", - "@stdlib/math-base-assert-is-negative-zero": "^0.0.8", - "@stdlib/math-base-assert-is-negative-zerof": "^0.0.6", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.0.1", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.0.7", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.0.1", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.0.7", - "@stdlib/math-base-assert-is-odd": "^0.0.7", - "@stdlib/math-base-assert-is-positive-finite": "^0.0.2", - "@stdlib/math-base-assert-is-positive-integer": "^0.0.7", - "@stdlib/math-base-assert-is-positive-zero": "^0.0.8", - "@stdlib/math-base-assert-is-positive-zerof": "^0.0.6", - "@stdlib/math-base-assert-is-prime": "^0.0.7", - "@stdlib/math-base-assert-is-probability": "^0.0.7", - "@stdlib/math-base-assert-is-safe-integer": "^0.0.7", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.7", - "@stdlib/utils-define-read-only-property": "^0.0.8", - "@stdlib/error-tools-fmtprodmsg": "^0.0.2" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.0.8", - "@stdlib/bench": "^0.0.12", - "@stdlib/boolean-ctor": "^0.0.1", - "@stdlib/constants-float32-max": "^0.0.8", - "@stdlib/constants-float32-ninf": "^0.0.7", - "@stdlib/constants-float32-pinf": "^0.0.7", - "@stdlib/constants-float32-smallest-subnormal": "^0.0.8", - "@stdlib/constants-float64-max": "^0.0.8", - "@stdlib/constants-float64-max-safe-integer": "^0.0.8", - "@stdlib/constants-float64-min-safe-integer": "^0.0.8", - "@stdlib/constants-float64-ninf": "^0.0.8", - "@stdlib/constants-float64-pinf": "^0.0.8", - "@stdlib/constants-float64-smallest-subnormal": "^0.0.8", - "@stdlib/constants-int32-max": "^0.0.7", - "@stdlib/datasets-primes-100k": "^0.0.9", - "@stdlib/math-base-special-floor": "^0.0.8", - "@stdlib/math-base-special-gcd": "^0.0.7", - "@stdlib/math-base-special-log10": "^0.0.6", - "@stdlib/math-base-special-log2": "^0.0.7", - "@stdlib/math-base-special-pow": "^0.0.7", - "@stdlib/math-base-special-round": "^0.0.7", - "@stdlib/math-base-special-sqrt": "^0.0.8", - "@stdlib/math-base-special-trunc": "^0.0.8", - "@stdlib/number-ctor": "^0.0.7", - "@stdlib/number-float64-base-to-float32": "^0.0.7", - "@stdlib/number-float64-base-to-uint32": "^0.0.7", - "@stdlib/random-base-discrete-uniform": "^0.0.6", - "@stdlib/random-base-randu": "^0.0.8", - "@stdlib/utils-keys": "^0.0.7", - "@stdlib/utils-try-require": "^0.0.7", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..9054b19 --- /dev/null +++ b/stats.html @@ -0,0 +1,6177 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 882f197..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.equal( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 4ebb361021e04aada4ab5fc898fb850102f63f4e Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 1 Jul 2023 05:12:21 +0000 Subject: [PATCH 053/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7411403..e46cb41 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.0.7", "@stdlib/math-base-assert-is-safe-integer": "^0.0.7", "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.7", - "@stdlib/utils-define-read-only-property": "^0.0.8" + "@stdlib/utils-define-read-only-property": "^0.0.8", + "@stdlib/error-tools-fmtprodmsg": "^0.0.2" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.0.8", @@ -147,4 +148,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From a8bcaec35760dbbb63a659ee6c68c12fd1857a95 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 1 Jul 2023 12:28:30 +0000 Subject: [PATCH 054/190] Remove files --- index.d.ts | 706 ------ index.mjs | 4 - index.mjs.map | 1 - stats.html | 6177 ------------------------------------------------- 4 files changed, 6888 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 9597524..0000000 --- a/index.d.ts +++ /dev/null @@ -1,706 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 2.0 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index acd6787..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",v),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index df49759..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;s5MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 9054b19..0000000 --- a/stats.html +++ /dev/null @@ -1,6177 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From b4596e32cddb176464a126d54fda781cd3dc7b74 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 1 Jul 2023 12:29:35 +0000 Subject: [PATCH 055/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 49 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 62 - .github/workflows/cancel.yml | 56 - .github/workflows/close_pull_requests.yml | 44 - .github/workflows/examples.yml | 62 - .github/workflows/npm_downloads.yml | 108 - .github/workflows/productionize.yml | 798 --- .github/workflows/publish.yml | 242 - .github/workflows/test.yml | 97 - .github/workflows/test_bundles.yml | 180 - .github/workflows/test_coverage.yml | 123 - .github/workflows/test_install.yml | 83 - .gitignore | 188 - .npmignore | 227 - .npmrc | 28 - CHANGELOG.md | 5 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 99 +- branches.md | 53 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 - package.json | 111 +- stats.html | 6177 +++++++++++++++++++++ test/test.js | 40 - 34 files changed, 6234 insertions(+), 3689 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0fd4d6c..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 8b58e96..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2023-07-01T03:21:57.855Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 06a9a75..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index a00dbe5..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,56 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - uses: styfle/cancel-workflow-action@0.11.0 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 550b204..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,44 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: superbrothers/close-pull-request@v3 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 7902a7d..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout the repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index c4e1fd9..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,108 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - uses: actions/upload-artifact@v3 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - uses: distributhor/workflow-webhook@v3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 3e8e2db..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,798 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - uses: actions/checkout@v3 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Format error messages: - - name: 'Replace double quotes with single quotes in rewritten format string error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \; - - # Format string literal error messages: - - name: 'Replace double quotes with single quotes in rewritten string literal error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \; - - # Format code: - - name: 'Replace double quotes with single quotes in inserted `require` calls' - run: | - find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \; - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - uses: actions/checkout@v3 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -137,7 +136,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -199,63 +198,63 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 768a8af..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index 1cdbcd0..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..acd6787 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",v),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..df49759 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;s5MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index e46cb41..3ed6250 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.0.6", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.0.7", - "@stdlib/math-base-assert-int32-is-odd": "^0.0.7", - "@stdlib/math-base-assert-is-composite": "^0.0.7", - "@stdlib/math-base-assert-is-coprime": "^0.0.7", - "@stdlib/math-base-assert-is-even": "^0.0.7", - "@stdlib/math-base-assert-is-finite": "^0.0.7", - "@stdlib/math-base-assert-is-finitef": "^0.0.6", - "@stdlib/math-base-assert-is-infinite": "^0.0.9", - "@stdlib/math-base-assert-is-infinitef": "^0.0.7", - "@stdlib/math-base-assert-is-integer": "^0.0.7", - "@stdlib/math-base-assert-is-nan": "^0.0.8", - "@stdlib/math-base-assert-is-nanf": "^0.0.8", - "@stdlib/math-base-assert-is-negative-finite": "^0.0.1", - "@stdlib/math-base-assert-is-negative-integer": "^0.0.7", - "@stdlib/math-base-assert-is-negative-zero": "^0.0.8", - "@stdlib/math-base-assert-is-negative-zerof": "^0.0.6", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.0.1", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.0.7", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.0.1", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.0.7", - "@stdlib/math-base-assert-is-odd": "^0.0.7", - "@stdlib/math-base-assert-is-positive-finite": "^0.0.2", - "@stdlib/math-base-assert-is-positive-integer": "^0.0.7", - "@stdlib/math-base-assert-is-positive-zero": "^0.0.8", - "@stdlib/math-base-assert-is-positive-zerof": "^0.0.6", - "@stdlib/math-base-assert-is-prime": "^0.0.7", - "@stdlib/math-base-assert-is-probability": "^0.0.7", - "@stdlib/math-base-assert-is-safe-integer": "^0.0.7", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.7", - "@stdlib/utils-define-read-only-property": "^0.0.8", - "@stdlib/error-tools-fmtprodmsg": "^0.0.2" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.0.8", - "@stdlib/bench": "^0.0.12", - "@stdlib/boolean-ctor": "^0.0.1", - "@stdlib/constants-float32-max": "^0.0.8", - "@stdlib/constants-float32-ninf": "^0.0.7", - "@stdlib/constants-float32-pinf": "^0.0.7", - "@stdlib/constants-float32-smallest-subnormal": "^0.0.8", - "@stdlib/constants-float64-max": "^0.0.8", - "@stdlib/constants-float64-max-safe-integer": "^0.0.8", - "@stdlib/constants-float64-min-safe-integer": "^0.0.8", - "@stdlib/constants-float64-ninf": "^0.0.8", - "@stdlib/constants-float64-pinf": "^0.0.8", - "@stdlib/constants-float64-smallest-subnormal": "^0.0.8", - "@stdlib/constants-int32-max": "^0.0.7", - "@stdlib/datasets-primes-100k": "^0.0.9", - "@stdlib/math-base-special-floor": "^0.0.8", - "@stdlib/math-base-special-gcd": "^0.0.7", - "@stdlib/math-base-special-log10": "^0.0.6", - "@stdlib/math-base-special-log2": "^0.0.7", - "@stdlib/math-base-special-pow": "^0.0.7", - "@stdlib/math-base-special-round": "^0.0.7", - "@stdlib/math-base-special-sqrt": "^0.0.8", - "@stdlib/math-base-special-trunc": "^0.0.8", - "@stdlib/number-ctor": "^0.0.7", - "@stdlib/number-float64-base-to-float32": "^0.0.7", - "@stdlib/number-float64-base-to-uint32": "^0.0.7", - "@stdlib/random-base-discrete-uniform": "^0.0.6", - "@stdlib/random-base-randu": "^0.0.8", - "@stdlib/utils-keys": "^0.0.7", - "@stdlib/utils-try-require": "^0.0.7", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..e201c5a --- /dev/null +++ b/stats.html @@ -0,0 +1,6177 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 882f197..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.equal( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 3a57187168f03c4c46d1e3ee72eed050bca70ea7 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 24 Jul 2023 15:03:23 +0000 Subject: [PATCH 056/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7411403..e46cb41 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.0.7", "@stdlib/math-base-assert-is-safe-integer": "^0.0.7", "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.7", - "@stdlib/utils-define-read-only-property": "^0.0.8" + "@stdlib/utils-define-read-only-property": "^0.0.8", + "@stdlib/error-tools-fmtprodmsg": "^0.0.2" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.0.8", @@ -147,4 +148,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From 8443a383cea8667c1b89731df29bf7cd937e3db2 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 24 Jul 2023 15:19:58 +0000 Subject: [PATCH 057/190] Remove files --- index.d.ts | 706 ------ index.mjs | 4 - index.mjs.map | 1 - stats.html | 6177 ------------------------------------------------- 4 files changed, 6888 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 9597524..0000000 --- a/index.d.ts +++ /dev/null @@ -1,706 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 2.0 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index acd6787..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",v),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index df49759..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;s5MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index e201c5a..0000000 --- a/stats.html +++ /dev/null @@ -1,6177 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From 96b823d5bd3e37a7831c336bf5b98fd610e91437 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 24 Jul 2023 15:21:10 +0000 Subject: [PATCH 058/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 49 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 62 - .github/workflows/cancel.yml | 56 - .github/workflows/close_pull_requests.yml | 44 - .github/workflows/examples.yml | 62 - .github/workflows/npm_downloads.yml | 108 - .github/workflows/productionize.yml | 798 --- .github/workflows/publish.yml | 242 - .github/workflows/test.yml | 97 - .github/workflows/test_bundles.yml | 180 - .github/workflows/test_coverage.yml | 123 - .github/workflows/test_install.yml | 83 - .gitignore | 188 - .npmignore | 227 - .npmrc | 28 - CHANGELOG.md | 5 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 99 +- branches.md | 53 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 - package.json | 111 +- stats.html | 6177 +++++++++++++++++++++ test/test.js | 40 - 33 files changed, 6234 insertions(+), 3688 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0fd4d6c..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 06a9a75..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index a00dbe5..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,56 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - uses: styfle/cancel-workflow-action@0.11.0 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 550b204..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,44 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: superbrothers/close-pull-request@v3 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 7902a7d..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout the repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index c4e1fd9..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,108 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - uses: actions/upload-artifact@v3 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - uses: distributhor/workflow-webhook@v3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 3e8e2db..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,798 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - uses: actions/checkout@v3 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Format error messages: - - name: 'Replace double quotes with single quotes in rewritten format string error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \; - - # Format string literal error messages: - - name: 'Replace double quotes with single quotes in rewritten string literal error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \; - - # Format code: - - name: 'Replace double quotes with single quotes in inserted `require` calls' - run: | - find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \; - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - uses: actions/checkout@v3 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v1 - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -137,7 +136,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -199,63 +198,63 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 768a8af..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index 1cdbcd0..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..acd6787 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",v),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..df49759 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;s5MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index e46cb41..3ed6250 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.0.6", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.0.7", - "@stdlib/math-base-assert-int32-is-odd": "^0.0.7", - "@stdlib/math-base-assert-is-composite": "^0.0.7", - "@stdlib/math-base-assert-is-coprime": "^0.0.7", - "@stdlib/math-base-assert-is-even": "^0.0.7", - "@stdlib/math-base-assert-is-finite": "^0.0.7", - "@stdlib/math-base-assert-is-finitef": "^0.0.6", - "@stdlib/math-base-assert-is-infinite": "^0.0.9", - "@stdlib/math-base-assert-is-infinitef": "^0.0.7", - "@stdlib/math-base-assert-is-integer": "^0.0.7", - "@stdlib/math-base-assert-is-nan": "^0.0.8", - "@stdlib/math-base-assert-is-nanf": "^0.0.8", - "@stdlib/math-base-assert-is-negative-finite": "^0.0.1", - "@stdlib/math-base-assert-is-negative-integer": "^0.0.7", - "@stdlib/math-base-assert-is-negative-zero": "^0.0.8", - "@stdlib/math-base-assert-is-negative-zerof": "^0.0.6", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.0.1", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.0.7", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.0.1", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.0.7", - "@stdlib/math-base-assert-is-odd": "^0.0.7", - "@stdlib/math-base-assert-is-positive-finite": "^0.0.2", - "@stdlib/math-base-assert-is-positive-integer": "^0.0.7", - "@stdlib/math-base-assert-is-positive-zero": "^0.0.8", - "@stdlib/math-base-assert-is-positive-zerof": "^0.0.6", - "@stdlib/math-base-assert-is-prime": "^0.0.7", - "@stdlib/math-base-assert-is-probability": "^0.0.7", - "@stdlib/math-base-assert-is-safe-integer": "^0.0.7", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.7", - "@stdlib/utils-define-read-only-property": "^0.0.8", - "@stdlib/error-tools-fmtprodmsg": "^0.0.2" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.0.8", - "@stdlib/bench": "^0.0.12", - "@stdlib/boolean-ctor": "^0.0.1", - "@stdlib/constants-float32-max": "^0.0.8", - "@stdlib/constants-float32-ninf": "^0.0.7", - "@stdlib/constants-float32-pinf": "^0.0.7", - "@stdlib/constants-float32-smallest-subnormal": "^0.0.8", - "@stdlib/constants-float64-max": "^0.0.8", - "@stdlib/constants-float64-max-safe-integer": "^0.0.8", - "@stdlib/constants-float64-min-safe-integer": "^0.0.8", - "@stdlib/constants-float64-ninf": "^0.0.8", - "@stdlib/constants-float64-pinf": "^0.0.8", - "@stdlib/constants-float64-smallest-subnormal": "^0.0.8", - "@stdlib/constants-int32-max": "^0.0.7", - "@stdlib/datasets-primes-100k": "^0.0.9", - "@stdlib/math-base-special-floor": "^0.0.8", - "@stdlib/math-base-special-gcd": "^0.0.7", - "@stdlib/math-base-special-log10": "^0.0.6", - "@stdlib/math-base-special-log2": "^0.0.7", - "@stdlib/math-base-special-pow": "^0.0.7", - "@stdlib/math-base-special-round": "^0.0.7", - "@stdlib/math-base-special-sqrt": "^0.0.8", - "@stdlib/math-base-special-trunc": "^0.0.8", - "@stdlib/number-ctor": "^0.0.7", - "@stdlib/number-float64-base-to-float32": "^0.0.7", - "@stdlib/number-float64-base-to-uint32": "^0.0.7", - "@stdlib/random-base-discrete-uniform": "^0.0.6", - "@stdlib/random-base-randu": "^0.0.8", - "@stdlib/utils-keys": "^0.0.7", - "@stdlib/utils-try-require": "^0.0.7", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..4726d9b --- /dev/null +++ b/stats.html @@ -0,0 +1,6177 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 398f32cea6ded0efd01b21de15c3c8b69b922ff6 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Tue, 1 Aug 2023 05:36:45 +0000 Subject: [PATCH 059/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7411403..e46cb41 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.0.7", "@stdlib/math-base-assert-is-safe-integer": "^0.0.7", "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.7", - "@stdlib/utils-define-read-only-property": "^0.0.8" + "@stdlib/utils-define-read-only-property": "^0.0.8", + "@stdlib/error-tools-fmtprodmsg": "^0.0.2" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.0.8", @@ -147,4 +148,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From d8a68cacc035b74ebc1b9d033c1ee9fe5787ccb9 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Tue, 1 Aug 2023 13:02:13 +0000 Subject: [PATCH 060/190] Remove files --- index.d.ts | 706 ------ index.mjs | 4 - index.mjs.map | 1 - stats.html | 6177 ------------------------------------------------- 4 files changed, 6888 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 9597524..0000000 --- a/index.d.ts +++ /dev/null @@ -1,706 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 2.0 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index acd6787..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",v),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index df49759..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;s5MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 4726d9b..0000000 --- a/stats.html +++ /dev/null @@ -1,6177 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From 3a84940fe00c05239ea46595f5051b2719ee57f3 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Tue, 1 Aug 2023 13:03:40 +0000 Subject: [PATCH 061/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 49 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 62 - .github/workflows/cancel.yml | 56 - .github/workflows/close_pull_requests.yml | 44 - .github/workflows/examples.yml | 62 - .github/workflows/npm_downloads.yml | 108 - .github/workflows/productionize.yml | 798 --- .github/workflows/publish.yml | 242 - .github/workflows/test.yml | 97 - .github/workflows/test_bundles.yml | 180 - .github/workflows/test_coverage.yml | 123 - .github/workflows/test_install.yml | 83 - .gitignore | 188 - .npmignore | 227 - .npmrc | 28 - CHANGELOG.md | 5 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 99 +- branches.md | 53 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 - package.json | 111 +- stats.html | 6177 +++++++++++++++++++++ test/test.js | 40 - 34 files changed, 6234 insertions(+), 3689 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0fd4d6c..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index c7ebcb3..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2023-08-01T03:40:22.727Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 06a9a75..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index a00dbe5..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,56 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - uses: styfle/cancel-workflow-action@0.11.0 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 550b204..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,44 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: superbrothers/close-pull-request@v3 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 7902a7d..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout the repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index c4e1fd9..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,108 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - uses: actions/upload-artifact@v3 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - uses: distributhor/workflow-webhook@v3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 334eb59..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,798 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - uses: actions/checkout@v3 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Format error messages: - - name: 'Replace double quotes with single quotes in rewritten format string error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \; - - # Format string literal error messages: - - name: 'Replace double quotes with single quotes in rewritten string literal error messages' - run: | - find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \; - - # Format code: - - name: 'Replace double quotes with single quotes in inserted `require` calls' - run: | - find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \; - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - uses: actions/checkout@v3 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v2 - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -137,7 +136,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -199,63 +198,63 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 768a8af..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index 1cdbcd0..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..acd6787 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",v),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..df49759 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;s5MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index e46cb41..3ed6250 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.0.6", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.0.7", - "@stdlib/math-base-assert-int32-is-odd": "^0.0.7", - "@stdlib/math-base-assert-is-composite": "^0.0.7", - "@stdlib/math-base-assert-is-coprime": "^0.0.7", - "@stdlib/math-base-assert-is-even": "^0.0.7", - "@stdlib/math-base-assert-is-finite": "^0.0.7", - "@stdlib/math-base-assert-is-finitef": "^0.0.6", - "@stdlib/math-base-assert-is-infinite": "^0.0.9", - "@stdlib/math-base-assert-is-infinitef": "^0.0.7", - "@stdlib/math-base-assert-is-integer": "^0.0.7", - "@stdlib/math-base-assert-is-nan": "^0.0.8", - "@stdlib/math-base-assert-is-nanf": "^0.0.8", - "@stdlib/math-base-assert-is-negative-finite": "^0.0.1", - "@stdlib/math-base-assert-is-negative-integer": "^0.0.7", - "@stdlib/math-base-assert-is-negative-zero": "^0.0.8", - "@stdlib/math-base-assert-is-negative-zerof": "^0.0.6", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.0.1", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.0.7", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.0.1", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.0.7", - "@stdlib/math-base-assert-is-odd": "^0.0.7", - "@stdlib/math-base-assert-is-positive-finite": "^0.0.2", - "@stdlib/math-base-assert-is-positive-integer": "^0.0.7", - "@stdlib/math-base-assert-is-positive-zero": "^0.0.8", - "@stdlib/math-base-assert-is-positive-zerof": "^0.0.6", - "@stdlib/math-base-assert-is-prime": "^0.0.7", - "@stdlib/math-base-assert-is-probability": "^0.0.7", - "@stdlib/math-base-assert-is-safe-integer": "^0.0.7", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.7", - "@stdlib/utils-define-read-only-property": "^0.0.8", - "@stdlib/error-tools-fmtprodmsg": "^0.0.2" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.0.8", - "@stdlib/bench": "^0.0.12", - "@stdlib/boolean-ctor": "^0.0.1", - "@stdlib/constants-float32-max": "^0.0.8", - "@stdlib/constants-float32-ninf": "^0.0.7", - "@stdlib/constants-float32-pinf": "^0.0.7", - "@stdlib/constants-float32-smallest-subnormal": "^0.0.8", - "@stdlib/constants-float64-max": "^0.0.8", - "@stdlib/constants-float64-max-safe-integer": "^0.0.8", - "@stdlib/constants-float64-min-safe-integer": "^0.0.8", - "@stdlib/constants-float64-ninf": "^0.0.8", - "@stdlib/constants-float64-pinf": "^0.0.8", - "@stdlib/constants-float64-smallest-subnormal": "^0.0.8", - "@stdlib/constants-int32-max": "^0.0.7", - "@stdlib/datasets-primes-100k": "^0.0.9", - "@stdlib/math-base-special-floor": "^0.0.8", - "@stdlib/math-base-special-gcd": "^0.0.7", - "@stdlib/math-base-special-log10": "^0.0.6", - "@stdlib/math-base-special-log2": "^0.0.7", - "@stdlib/math-base-special-pow": "^0.0.7", - "@stdlib/math-base-special-round": "^0.0.7", - "@stdlib/math-base-special-sqrt": "^0.0.8", - "@stdlib/math-base-special-trunc": "^0.0.8", - "@stdlib/number-ctor": "^0.0.7", - "@stdlib/number-float64-base-to-float32": "^0.0.7", - "@stdlib/number-float64-base-to-uint32": "^0.0.7", - "@stdlib/random-base-discrete-uniform": "^0.0.6", - "@stdlib/random-base-randu": "^0.0.8", - "@stdlib/utils-keys": "^0.0.7", - "@stdlib/utils-try-require": "^0.0.7", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..146ffe4 --- /dev/null +++ b/stats.html @@ -0,0 +1,6177 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From bcf453ebaa8bdc7f057b1e004b82809b7c09a190 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 19 Aug 2023 20:50:34 +0000 Subject: [PATCH 062/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7411403..e46cb41 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.0.7", "@stdlib/math-base-assert-is-safe-integer": "^0.0.7", "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.7", - "@stdlib/utils-define-read-only-property": "^0.0.8" + "@stdlib/utils-define-read-only-property": "^0.0.8", + "@stdlib/error-tools-fmtprodmsg": "^0.0.2" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.0.8", @@ -147,4 +148,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From 1bf57bee4af0c51453485c5e3c008fce16a5d023 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 19 Aug 2023 20:51:01 +0000 Subject: [PATCH 063/190] Remove files --- index.d.ts | 706 ------ index.mjs | 4 - index.mjs.map | 1 - stats.html | 6177 ------------------------------------------------- 4 files changed, 6888 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 9597524..0000000 --- a/index.d.ts +++ /dev/null @@ -1,706 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 2.0 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index acd6787..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",v),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index df49759..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;s5MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 146ffe4..0000000 --- a/stats.html +++ /dev/null @@ -1,6177 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From 9e9f206a0464a8fa6dbee94896f9db5996ad21b0 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 19 Aug 2023 20:52:23 +0000 Subject: [PATCH 064/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 49 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 62 - .github/workflows/cancel.yml | 56 - .github/workflows/close_pull_requests.yml | 44 - .github/workflows/examples.yml | 62 - .github/workflows/npm_downloads.yml | 108 - .github/workflows/productionize.yml | 783 --- .github/workflows/publish.yml | 242 - .github/workflows/test.yml | 97 - .github/workflows/test_bundles.yml | 180 - .github/workflows/test_coverage.yml | 123 - .github/workflows/test_install.yml | 83 - .gitignore | 188 - .npmignore | 227 - .npmrc | 28 - CHANGELOG.md | 5 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 99 +- branches.md | 53 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 - package.json | 111 +- stats.html | 6177 +++++++++++++++++++++ test/test.js | 40 - 36 files changed, 6234 insertions(+), 3686 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0fd4d6c..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 06a9a75..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index a00dbe5..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,56 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - uses: styfle/cancel-workflow-action@0.11.0 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 550b204..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,44 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: superbrothers/close-pull-request@v3 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 7902a7d..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout the repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index c4e1fd9..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,108 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - uses: actions/upload-artifact@v3 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - uses: distributhor/workflow-webhook@v3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 91f2b93..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,783 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - uses: actions/checkout@v3 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - uses: actions/checkout@v3 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v2 - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -137,7 +136,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -199,63 +198,63 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 768a8af..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index 1cdbcd0..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..acd6787 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",v),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..df49759 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;s5MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index e46cb41..3ed6250 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.0.6", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.0.7", - "@stdlib/math-base-assert-int32-is-odd": "^0.0.7", - "@stdlib/math-base-assert-is-composite": "^0.0.7", - "@stdlib/math-base-assert-is-coprime": "^0.0.7", - "@stdlib/math-base-assert-is-even": "^0.0.7", - "@stdlib/math-base-assert-is-finite": "^0.0.7", - "@stdlib/math-base-assert-is-finitef": "^0.0.6", - "@stdlib/math-base-assert-is-infinite": "^0.0.9", - "@stdlib/math-base-assert-is-infinitef": "^0.0.7", - "@stdlib/math-base-assert-is-integer": "^0.0.7", - "@stdlib/math-base-assert-is-nan": "^0.0.8", - "@stdlib/math-base-assert-is-nanf": "^0.0.8", - "@stdlib/math-base-assert-is-negative-finite": "^0.0.1", - "@stdlib/math-base-assert-is-negative-integer": "^0.0.7", - "@stdlib/math-base-assert-is-negative-zero": "^0.0.8", - "@stdlib/math-base-assert-is-negative-zerof": "^0.0.6", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.0.1", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.0.7", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.0.1", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.0.7", - "@stdlib/math-base-assert-is-odd": "^0.0.7", - "@stdlib/math-base-assert-is-positive-finite": "^0.0.2", - "@stdlib/math-base-assert-is-positive-integer": "^0.0.7", - "@stdlib/math-base-assert-is-positive-zero": "^0.0.8", - "@stdlib/math-base-assert-is-positive-zerof": "^0.0.6", - "@stdlib/math-base-assert-is-prime": "^0.0.7", - "@stdlib/math-base-assert-is-probability": "^0.0.7", - "@stdlib/math-base-assert-is-safe-integer": "^0.0.7", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.0.7", - "@stdlib/utils-define-read-only-property": "^0.0.8", - "@stdlib/error-tools-fmtprodmsg": "^0.0.2" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.0.8", - "@stdlib/bench": "^0.0.12", - "@stdlib/boolean-ctor": "^0.0.1", - "@stdlib/constants-float32-max": "^0.0.8", - "@stdlib/constants-float32-ninf": "^0.0.7", - "@stdlib/constants-float32-pinf": "^0.0.7", - "@stdlib/constants-float32-smallest-subnormal": "^0.0.8", - "@stdlib/constants-float64-max": "^0.0.8", - "@stdlib/constants-float64-max-safe-integer": "^0.0.8", - "@stdlib/constants-float64-min-safe-integer": "^0.0.8", - "@stdlib/constants-float64-ninf": "^0.0.8", - "@stdlib/constants-float64-pinf": "^0.0.8", - "@stdlib/constants-float64-smallest-subnormal": "^0.0.8", - "@stdlib/constants-int32-max": "^0.0.7", - "@stdlib/datasets-primes-100k": "^0.0.9", - "@stdlib/math-base-special-floor": "^0.0.8", - "@stdlib/math-base-special-gcd": "^0.0.7", - "@stdlib/math-base-special-log10": "^0.0.6", - "@stdlib/math-base-special-log2": "^0.0.7", - "@stdlib/math-base-special-pow": "^0.0.7", - "@stdlib/math-base-special-round": "^0.0.7", - "@stdlib/math-base-special-sqrt": "^0.0.8", - "@stdlib/math-base-special-trunc": "^0.0.8", - "@stdlib/number-ctor": "^0.0.7", - "@stdlib/number-float64-base-to-float32": "^0.0.7", - "@stdlib/number-float64-base-to-uint32": "^0.0.7", - "@stdlib/random-base-discrete-uniform": "^0.0.6", - "@stdlib/random-base-randu": "^0.0.8", - "@stdlib/utils-keys": "^0.0.7", - "@stdlib/utils-try-require": "^0.0.7", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..205bed4 --- /dev/null +++ b/stats.html @@ -0,0 +1,6177 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From ed3ab8956e36555a37f1c601c17928c60a059eb3 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 23 Sep 2023 14:21:31 +0000 Subject: [PATCH 065/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 45eb354..a9ac59c 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.1.0", "@stdlib/math-base-assert-is-safe-integer": "^0.0.7", "@stdlib/math-base-assert-uint32-is-pow2": "^0.1.0", - "@stdlib/utils-define-read-only-property": "^0.1.0" + "@stdlib/utils-define-read-only-property": "^0.1.0", + "@stdlib/error-tools-fmtprodmsg": "^0.1.0" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.1.0", @@ -147,4 +148,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From 04fe2546a6068af5f49d890253ca7aa575d35ec0 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 23 Sep 2023 15:02:48 +0000 Subject: [PATCH 066/190] Remove files --- index.d.ts | 706 ------ index.mjs | 4 - index.mjs.map | 1 - stats.html | 6177 ------------------------------------------------- 4 files changed, 6888 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index f7192b5..0000000 --- a/index.d.ts +++ /dev/null @@ -1,706 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index acd6787..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.0.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.0.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.0.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.0.2-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.0.7-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",p),s(E,"isNegativeInteger",f),s(E,"isNegativeZero",v),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index df49759..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;s5MAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 205bed4..0000000 --- a/stats.html +++ /dev/null @@ -1,6177 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From 02a0e91d678e964192522d32c783123d4d3663c1 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 23 Sep 2023 15:05:12 +0000 Subject: [PATCH 067/190] Auto-generated commit --- .editorconfig | 186 - .eslintrc.js | 1 - .gitattributes | 49 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 62 - .github/workflows/cancel.yml | 56 - .github/workflows/close_pull_requests.yml | 44 - .github/workflows/examples.yml | 62 - .github/workflows/npm_downloads.yml | 108 - .github/workflows/productionize.yml | 783 --- .github/workflows/publish.yml | 242 - .github/workflows/test.yml | 97 - .github/workflows/test_bundles.yml | 180 - .github/workflows/test_coverage.yml | 123 - .github/workflows/test_install.yml | 83 - .gitignore | 188 - .npmignore | 227 - .npmrc | 28 - CHANGELOG.md | 5 - CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 99 +- branches.md | 53 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 - package.json | 111 +- stats.html | 6177 +++++++++++++++++++++ test/test.js | 40 - 37 files changed, 6234 insertions(+), 3721 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 13e9c39..0000000 --- a/.editorconfig +++ /dev/null @@ -1,186 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 06a9a75..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index a00dbe5..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,56 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - uses: styfle/cancel-workflow-action@0.11.0 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 550b204..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,44 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - run: - runs-on: ubuntu-latest - steps: - - uses: superbrothers/close-pull-request@v3 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 7902a7d..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,62 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout the repository' - uses: actions/checkout@v3 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index c4e1fd9..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,108 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - uses: actions/upload-artifact@v3 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - uses: distributhor/workflow-webhook@v3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 91f2b93..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,783 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - uses: actions/checkout@v3 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - uses: actions/checkout@v3 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - uses: act10ns/slack@v2 - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - uses: actions/checkout@v3 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - uses: actions/setup-node@v3 - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -148,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -210,63 +209,63 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 768a8af..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index 1cdbcd0..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..fba1e89 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.1.0-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.0-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.0-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.0-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.0-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.0-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.0-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.0-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.0-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.0-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.0-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.0-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.0-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.0-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.0-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.0-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.0-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.0-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.0-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.0-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.0-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.0-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",l),s(E,"isNegativeFinite",v),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..7c29d8b --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;ujNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index a9ac59c..86a29d2 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.1.0", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.1.0", - "@stdlib/math-base-assert-int32-is-odd": "^0.1.0", - "@stdlib/math-base-assert-is-composite": "^0.0.7", - "@stdlib/math-base-assert-is-coprime": "^0.0.7", - "@stdlib/math-base-assert-is-even": "^0.0.7", - "@stdlib/math-base-assert-is-finite": "^0.1.0", - "@stdlib/math-base-assert-is-finitef": "^0.1.0", - "@stdlib/math-base-assert-is-infinite": "^0.1.0", - "@stdlib/math-base-assert-is-infinitef": "^0.1.0", - "@stdlib/math-base-assert-is-integer": "^0.1.0", - "@stdlib/math-base-assert-is-nan": "^0.1.0", - "@stdlib/math-base-assert-is-nanf": "^0.1.0", - "@stdlib/math-base-assert-is-negative-finite": "^0.1.0", - "@stdlib/math-base-assert-is-negative-integer": "^0.1.0", - "@stdlib/math-base-assert-is-negative-zero": "^0.1.0", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.0", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.1.0", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.1.0", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.1.0", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.1.0", - "@stdlib/math-base-assert-is-odd": "^0.0.7", - "@stdlib/math-base-assert-is-positive-finite": "^0.1.0", - "@stdlib/math-base-assert-is-positive-integer": "^0.1.0", - "@stdlib/math-base-assert-is-positive-zero": "^0.1.0", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.0", - "@stdlib/math-base-assert-is-prime": "^0.1.0", - "@stdlib/math-base-assert-is-probability": "^0.1.0", - "@stdlib/math-base-assert-is-safe-integer": "^0.0.7", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.1.0", - "@stdlib/utils-define-read-only-property": "^0.1.0", - "@stdlib/error-tools-fmtprodmsg": "^0.1.0" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.1.0", - "@stdlib/bench": "^0.1.0", - "@stdlib/boolean-ctor": "^0.1.0", - "@stdlib/constants-float32-max": "^0.1.0", - "@stdlib/constants-float32-ninf": "^0.1.0", - "@stdlib/constants-float32-pinf": "^0.1.0", - "@stdlib/constants-float32-smallest-subnormal": "^0.1.0", - "@stdlib/constants-float64-max": "^0.1.0", - "@stdlib/constants-float64-max-safe-integer": "^0.1.0", - "@stdlib/constants-float64-min-safe-integer": "^0.1.0", - "@stdlib/constants-float64-ninf": "^0.1.0", - "@stdlib/constants-float64-pinf": "^0.1.0", - "@stdlib/constants-float64-smallest-subnormal": "^0.1.0", - "@stdlib/constants-int32-max": "^0.1.0", - "@stdlib/datasets-primes-100k": "^0.1.0", - "@stdlib/math-base-special-floor": "^0.1.0", - "@stdlib/math-base-special-gcd": "^0.1.0", - "@stdlib/math-base-special-log10": "^0.1.0", - "@stdlib/math-base-special-log2": "^0.1.0", - "@stdlib/math-base-special-pow": "^0.0.7", - "@stdlib/math-base-special-round": "^0.1.0", - "@stdlib/math-base-special-sqrt": "^0.1.0", - "@stdlib/math-base-special-trunc": "^0.0.8", - "@stdlib/number-ctor": "^0.1.0", - "@stdlib/number-float64-base-to-float32": "^0.1.0", - "@stdlib/number-float64-base-to-uint32": "^0.1.0", - "@stdlib/random-base-discrete-uniform": "^0.0.6", - "@stdlib/random-base-randu": "^0.0.8", - "@stdlib/utils-keys": "^0.0.7", - "@stdlib/utils-try-require": "^0.1.0", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..681fabf --- /dev/null +++ b/stats.html @@ -0,0 +1,6177 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 7c8c64a586cc1bcde736ad260f053a9631f9ea8f Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 23 Sep 2023 15:36:27 +0000 Subject: [PATCH 068/190] Update README.md for ESM bundle v0.1.0 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d7d1d77..5c79b9d 100644 --- a/README.md +++ b/README.md @@ -42,13 +42,13 @@ limitations under the License. ## Usage ```javascript -import ns from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@esm/index.mjs'; +import ns from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@v0.1.0-esm/index.mjs'; ``` You can also import the following named exports from the package: ```javascript -import { isComposite, isCoprime, isEven, isEvenInt32, isFinite, isFinitef, isInfinite, isInfinitef, isInteger, isNegativeFinite, isNegativeInteger, isNegativeZero, isNegativeZerof, isNonNegativeFinite, isNonNegativeInteger, isNonPositiveFinite, isNonPositiveInteger, isOdd, isOddInt32, isPositiveFinite, isPositiveInteger, isPositiveZero, isPositiveZerof, isPow2Uint32, isPrime, isProbability, isSafeInteger, isnan, isnanf } from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@esm/index.mjs'; +import { isComposite, isCoprime, isEven, isEvenInt32, isFinite, isFinitef, isInfinite, isInfinitef, isInteger, isNegativeFinite, isNegativeInteger, isNegativeZero, isNegativeZerof, isNonNegativeFinite, isNonNegativeInteger, isNonPositiveFinite, isNonPositiveInteger, isOdd, isOddInt32, isPositiveFinite, isPositiveInteger, isPositiveZero, isPositiveZerof, isPow2Uint32, isPrime, isProbability, isSafeInteger, isnan, isnanf } from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@v0.1.0-esm/index.mjs'; ``` #### ns @@ -117,7 +117,7 @@ var o = ns; - - - - From 677cb6284c44f232aa7e32ee10745680e82c2cf6 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 2 Oct 2023 10:34:40 +0000 Subject: [PATCH 072/190] Auto-generated commit --- .editorconfig | 186 - .eslintrc.js | 1 - .gitattributes | 49 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 797 --- .github/workflows/publish.yml | 247 - .github/workflows/test.yml | 100 - .github/workflows/test_bundles.yml | 189 - .github/workflows/test_coverage.yml | 128 - .github/workflows/test_install.yml | 86 - .gitignore | 188 - .npmignore | 227 - .npmrc | 28 - CHANGELOG.md | 5 - CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 99 +- branches.md | 53 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 - package.json | 111 +- stats.html | 6177 +++++++++++++++++++++ test/dist/test.js | 40 - test/test.js | 40 - 39 files changed, 6234 insertions(+), 3820 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 13e9c39..0000000 --- a/.editorconfig +++ /dev/null @@ -1,186 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index f68a3aa..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2023-10-01T02:30:05.289Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index ab56cca..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index 3acd3a9..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA corresponding to v0.11.0 - uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index c1c45e7..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index 5f805db..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA corresponding to v3.1.3 - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA corresponding to v3.0.3: - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 265afda..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,797 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA corresponding to v2.0.0 - uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -148,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -210,63 +209,63 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 768a8af..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index 1cdbcd0..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..72149fb --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.1.0-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.0-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.0-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.0-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.0-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.0-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.0-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.0-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.0-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.0-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.0-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.0-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.0-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.0-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.0-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.0-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.0-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.0-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.0-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.0-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.0-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.0-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.0-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.0-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.0-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.0-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.0-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.0-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.0-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.0-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.0-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.0-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.0-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.0-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..0ee6204 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index b611687..86a29d2 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.1.0", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.1.0", - "@stdlib/math-base-assert-int32-is-odd": "^0.1.0", - "@stdlib/math-base-assert-is-composite": "^0.1.0", - "@stdlib/math-base-assert-is-coprime": "^0.1.0", - "@stdlib/math-base-assert-is-even": "^0.1.0", - "@stdlib/math-base-assert-is-finite": "^0.1.0", - "@stdlib/math-base-assert-is-finitef": "^0.1.0", - "@stdlib/math-base-assert-is-infinite": "^0.1.0", - "@stdlib/math-base-assert-is-infinitef": "^0.1.0", - "@stdlib/math-base-assert-is-integer": "^0.1.0", - "@stdlib/math-base-assert-is-nan": "^0.1.0", - "@stdlib/math-base-assert-is-nanf": "^0.1.0", - "@stdlib/math-base-assert-is-negative-finite": "^0.1.0", - "@stdlib/math-base-assert-is-negative-integer": "^0.1.0", - "@stdlib/math-base-assert-is-negative-zero": "^0.1.0", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.0", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.1.0", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.1.0", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.1.0", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.1.0", - "@stdlib/math-base-assert-is-odd": "^0.1.0", - "@stdlib/math-base-assert-is-positive-finite": "^0.1.0", - "@stdlib/math-base-assert-is-positive-integer": "^0.1.0", - "@stdlib/math-base-assert-is-positive-zero": "^0.1.0", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.0", - "@stdlib/math-base-assert-is-prime": "^0.1.0", - "@stdlib/math-base-assert-is-probability": "^0.1.0", - "@stdlib/math-base-assert-is-safe-integer": "^0.1.0", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.1.0", - "@stdlib/utils-define-read-only-property": "^0.1.0", - "@stdlib/error-tools-fmtprodmsg": "^0.1.0" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.1.0", - "@stdlib/bench": "^0.1.0", - "@stdlib/boolean-ctor": "^0.1.0", - "@stdlib/constants-float32-max": "^0.1.0", - "@stdlib/constants-float32-ninf": "^0.1.0", - "@stdlib/constants-float32-pinf": "^0.1.0", - "@stdlib/constants-float32-smallest-subnormal": "^0.1.0", - "@stdlib/constants-float64-max": "^0.1.0", - "@stdlib/constants-float64-max-safe-integer": "^0.1.0", - "@stdlib/constants-float64-min-safe-integer": "^0.1.0", - "@stdlib/constants-float64-ninf": "^0.1.0", - "@stdlib/constants-float64-pinf": "^0.1.0", - "@stdlib/constants-float64-smallest-subnormal": "^0.1.0", - "@stdlib/constants-int32-max": "^0.1.0", - "@stdlib/datasets-primes-100k": "^0.1.0", - "@stdlib/math-base-special-floor": "^0.1.0", - "@stdlib/math-base-special-gcd": "^0.1.0", - "@stdlib/math-base-special-log10": "^0.1.0", - "@stdlib/math-base-special-log2": "^0.1.0", - "@stdlib/math-base-special-pow": "^0.1.0", - "@stdlib/math-base-special-round": "^0.1.0", - "@stdlib/math-base-special-sqrt": "^0.1.0", - "@stdlib/math-base-special-trunc": "^0.1.0", - "@stdlib/number-ctor": "^0.1.0", - "@stdlib/number-float64-base-to-float32": "^0.1.0", - "@stdlib/number-float64-base-to-uint32": "^0.1.0", - "@stdlib/random-base-discrete-uniform": "^0.1.0", - "@stdlib/random-base-randu": "^0.1.0", - "@stdlib/utils-keys": "^0.1.0", - "@stdlib/utils-try-require": "^0.1.0", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..22504b4 --- /dev/null +++ b/stats.html @@ -0,0 +1,6177 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index abe4f0c..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From ff1f4130d3d4004871cf970cb31580bc8abf451a Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 5 Oct 2023 09:39:27 +0000 Subject: [PATCH 073/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 509fc99..8750e92 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.1.1", "@stdlib/math-base-assert-is-safe-integer": "^0.1.0", "@stdlib/math-base-assert-uint32-is-pow2": "^0.1.1", - "@stdlib/utils-define-read-only-property": "^0.1.1" + "@stdlib/utils-define-read-only-property": "^0.1.1", + "@stdlib/error-tools-fmtprodmsg": "^0.1.1" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.1.1", @@ -147,4 +148,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From c644660d9a6debb6067a6d972cd203a590ac1565 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 6 Oct 2023 12:32:10 +0000 Subject: [PATCH 074/190] Remove files --- index.d.ts | 706 ------ index.mjs | 4 - index.mjs.map | 1 - stats.html | 6177 ------------------------------------------------- 4 files changed, 6888 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index f7192b5..0000000 --- a/index.d.ts +++ /dev/null @@ -1,706 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index 72149fb..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.1.0-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.0-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.0-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.0-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.0-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.0-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.0-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.0-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.0-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.0-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.0-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.0-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.0-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.0-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.0-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.0-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.0-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.0-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.0-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.0-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.0-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.0-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.0-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.0-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.0-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.0-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.0-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.0-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.0-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.0-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.0-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.0-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.0-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.0-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index 0ee6204..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 22504b4..0000000 --- a/stats.html +++ /dev/null @@ -1,6177 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From f0df499e1209c2c3900d7902dc1d8f55adafe304 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 6 Oct 2023 12:36:01 +0000 Subject: [PATCH 075/190] Auto-generated commit --- .editorconfig | 186 - .eslintrc.js | 1 - .gitattributes | 49 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 797 --- .github/workflows/publish.yml | 247 - .github/workflows/test.yml | 100 - .github/workflows/test_bundles.yml | 189 - .github/workflows/test_coverage.yml | 128 - .github/workflows/test_install.yml | 86 - .gitignore | 188 - .npmignore | 227 - .npmrc | 28 - CHANGELOG.md | 5 - CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 99 +- branches.md | 53 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 - package.json | 111 +- stats.html | 6177 +++++++++++++++++++++ test/dist/test.js | 40 - test/test.js | 40 - 38 files changed, 6234 insertions(+), 3819 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 13e9c39..0000000 --- a/.editorconfig +++ /dev/null @@ -1,186 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index ab56cca..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index 3acd3a9..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA corresponding to v0.11.0 - uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index c1c45e7..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index 5f805db..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA corresponding to v3.1.3 - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA corresponding to v3.0.3: - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 265afda..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,797 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA corresponding to v2.0.0 - uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -148,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -210,63 +209,63 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 768a8af..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index 1cdbcd0..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..ddf052f --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.1.1-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.0-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.0-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.0-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.0-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.0-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.0-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.0-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.0-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.0-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.0-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.0-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.0-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.0-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.0-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.0-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.0-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..0ee6204 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 8750e92..86a29d2 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.1.0", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.1.1", - "@stdlib/math-base-assert-int32-is-odd": "^0.1.1", - "@stdlib/math-base-assert-is-composite": "^0.1.0", - "@stdlib/math-base-assert-is-coprime": "^0.1.0", - "@stdlib/math-base-assert-is-even": "^0.1.0", - "@stdlib/math-base-assert-is-finite": "^0.1.1", - "@stdlib/math-base-assert-is-finitef": "^0.1.0", - "@stdlib/math-base-assert-is-infinite": "^0.1.1", - "@stdlib/math-base-assert-is-infinitef": "^0.1.0", - "@stdlib/math-base-assert-is-integer": "^0.1.0", - "@stdlib/math-base-assert-is-nan": "^0.1.1", - "@stdlib/math-base-assert-is-nanf": "^0.1.1", - "@stdlib/math-base-assert-is-negative-finite": "^0.1.1", - "@stdlib/math-base-assert-is-negative-integer": "^0.1.0", - "@stdlib/math-base-assert-is-negative-zero": "^0.1.1", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.0", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.1.1", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.1.0", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.1.1", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.1.0", - "@stdlib/math-base-assert-is-odd": "^0.1.0", - "@stdlib/math-base-assert-is-positive-finite": "^0.1.1", - "@stdlib/math-base-assert-is-positive-integer": "^0.1.0", - "@stdlib/math-base-assert-is-positive-zero": "^0.1.1", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.0", - "@stdlib/math-base-assert-is-prime": "^0.1.0", - "@stdlib/math-base-assert-is-probability": "^0.1.1", - "@stdlib/math-base-assert-is-safe-integer": "^0.1.0", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.1.1", - "@stdlib/utils-define-read-only-property": "^0.1.1", - "@stdlib/error-tools-fmtprodmsg": "^0.1.1" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.1.1", - "@stdlib/bench": "^0.1.0", - "@stdlib/boolean-ctor": "^0.1.1", - "@stdlib/constants-float32-max": "^0.1.1", - "@stdlib/constants-float32-ninf": "^0.1.0", - "@stdlib/constants-float32-pinf": "^0.1.0", - "@stdlib/constants-float32-smallest-subnormal": "^0.1.1", - "@stdlib/constants-float64-max": "^0.1.1", - "@stdlib/constants-float64-max-safe-integer": "^0.1.1", - "@stdlib/constants-float64-min-safe-integer": "^0.1.1", - "@stdlib/constants-float64-ninf": "^0.1.1", - "@stdlib/constants-float64-pinf": "^0.1.1", - "@stdlib/constants-float64-smallest-subnormal": "^0.1.1", - "@stdlib/constants-int32-max": "^0.1.1", - "@stdlib/datasets-primes-100k": "^0.1.1", - "@stdlib/math-base-special-floor": "^0.1.0", - "@stdlib/math-base-special-gcd": "^0.1.0", - "@stdlib/math-base-special-log10": "^0.1.0", - "@stdlib/math-base-special-log2": "^0.1.0", - "@stdlib/math-base-special-pow": "^0.1.0", - "@stdlib/math-base-special-round": "^0.1.1", - "@stdlib/math-base-special-sqrt": "^0.1.0", - "@stdlib/math-base-special-trunc": "^0.1.0", - "@stdlib/number-ctor": "^0.1.1", - "@stdlib/number-float64-base-to-float32": "^0.1.0", - "@stdlib/number-float64-base-to-uint32": "^0.1.1", - "@stdlib/random-base-discrete-uniform": "^0.1.0", - "@stdlib/random-base-randu": "^0.1.0", - "@stdlib/utils-keys": "^0.1.0", - "@stdlib/utils-try-require": "^0.1.1", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..f726cd7 --- /dev/null +++ b/stats.html @@ -0,0 +1,6177 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index abe4f0c..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From b5ca939daf865e17edc7bbb3ef8e3c084b7a7393 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Wed, 1 Nov 2023 07:15:00 +0000 Subject: [PATCH 076/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index df32406..4e5a9f9 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.1.1", "@stdlib/math-base-assert-is-safe-integer": "^0.1.0", "@stdlib/math-base-assert-uint32-is-pow2": "^0.1.1", - "@stdlib/utils-define-read-only-property": "^0.1.1" + "@stdlib/utils-define-read-only-property": "^0.1.1", + "@stdlib/error-tools-fmtprodmsg": "^0.1.1" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.1.1", @@ -147,4 +148,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From 938f2464221b81d63ee52c7063b134d05e6b401e Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 2 Nov 2023 11:37:46 +0000 Subject: [PATCH 077/190] Remove files --- index.d.ts | 706 ------ index.mjs | 4 - index.mjs.map | 1 - stats.html | 6177 ------------------------------------------------- 4 files changed, 6888 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index f7192b5..0000000 --- a/index.d.ts +++ /dev/null @@ -1,706 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index ddf052f..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.1.1-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.0-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.0-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.0-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.0-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.0-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.0-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.0-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.0-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.0-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.0-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.0-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.0-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.0-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.0-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.0-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.0-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index 0ee6204..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index f726cd7..0000000 --- a/stats.html +++ /dev/null @@ -1,6177 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From b8a640492fb1f800677ab5d7fa931e4ea8895fea Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 2 Nov 2023 11:40:53 +0000 Subject: [PATCH 078/190] Auto-generated commit --- .editorconfig | 186 - .eslintrc.js | 1 - .gitattributes | 49 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 797 --- .github/workflows/publish.yml | 255 - .github/workflows/test.yml | 100 - .github/workflows/test_bundles.yml | 189 - .github/workflows/test_coverage.yml | 128 - .github/workflows/test_install.yml | 86 - .gitignore | 188 - .npmignore | 227 - .npmrc | 28 - CHANGELOG.md | 5 - CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 99 +- branches.md | 53 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 - package.json | 111 +- stats.html | 6177 +++++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 39 files changed, 6234 insertions(+), 3821 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 13e9c39..0000000 --- a/.editorconfig +++ /dev/null @@ -1,186 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 7af9a58..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2023-11-01T02:34:58.398Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index ab56cca..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index 3acd3a9..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA corresponding to v0.11.0 - uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index c1c45e7..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index 5f805db..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA corresponding to v3.1.3 - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA corresponding to v3.0.3: - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 265afda..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,797 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA corresponding to v2.0.0 - uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -148,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -210,63 +209,63 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 768a8af..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index 1cdbcd0..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..e26c0aa --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.1.1-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..0ee6204 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 4e5a9f9..86a29d2 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.1.0", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.1.1", - "@stdlib/math-base-assert-int32-is-odd": "^0.1.1", - "@stdlib/math-base-assert-is-composite": "^0.1.0", - "@stdlib/math-base-assert-is-coprime": "^0.1.0", - "@stdlib/math-base-assert-is-even": "^0.1.0", - "@stdlib/math-base-assert-is-finite": "^0.1.1", - "@stdlib/math-base-assert-is-finitef": "^0.1.1", - "@stdlib/math-base-assert-is-infinite": "^0.1.1", - "@stdlib/math-base-assert-is-infinitef": "^0.1.1", - "@stdlib/math-base-assert-is-integer": "^0.1.1", - "@stdlib/math-base-assert-is-nan": "^0.1.1", - "@stdlib/math-base-assert-is-nanf": "^0.1.1", - "@stdlib/math-base-assert-is-negative-finite": "^0.1.1", - "@stdlib/math-base-assert-is-negative-integer": "^0.1.1", - "@stdlib/math-base-assert-is-negative-zero": "^0.1.1", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.1", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.1.1", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.1.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.1.1", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.1.1", - "@stdlib/math-base-assert-is-odd": "^0.1.0", - "@stdlib/math-base-assert-is-positive-finite": "^0.1.1", - "@stdlib/math-base-assert-is-positive-integer": "^0.1.1", - "@stdlib/math-base-assert-is-positive-zero": "^0.1.1", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.1", - "@stdlib/math-base-assert-is-prime": "^0.1.1", - "@stdlib/math-base-assert-is-probability": "^0.1.1", - "@stdlib/math-base-assert-is-safe-integer": "^0.1.0", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.1.1", - "@stdlib/utils-define-read-only-property": "^0.1.1", - "@stdlib/error-tools-fmtprodmsg": "^0.1.1" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.1.1", - "@stdlib/bench": "^0.1.0", - "@stdlib/boolean-ctor": "^0.1.1", - "@stdlib/constants-float32-max": "^0.1.1", - "@stdlib/constants-float32-ninf": "^0.1.1", - "@stdlib/constants-float32-pinf": "^0.1.1", - "@stdlib/constants-float32-smallest-subnormal": "^0.1.1", - "@stdlib/constants-float64-max": "^0.1.1", - "@stdlib/constants-float64-max-safe-integer": "^0.1.1", - "@stdlib/constants-float64-min-safe-integer": "^0.1.1", - "@stdlib/constants-float64-ninf": "^0.1.1", - "@stdlib/constants-float64-pinf": "^0.1.1", - "@stdlib/constants-float64-smallest-subnormal": "^0.1.1", - "@stdlib/constants-int32-max": "^0.1.1", - "@stdlib/datasets-primes-100k": "^0.1.1", - "@stdlib/math-base-special-floor": "^0.1.1", - "@stdlib/math-base-special-gcd": "^0.1.0", - "@stdlib/math-base-special-log10": "^0.1.1", - "@stdlib/math-base-special-log2": "^0.1.1", - "@stdlib/math-base-special-pow": "^0.1.0", - "@stdlib/math-base-special-round": "^0.1.1", - "@stdlib/math-base-special-sqrt": "^0.1.1", - "@stdlib/math-base-special-trunc": "^0.1.1", - "@stdlib/number-ctor": "^0.1.1", - "@stdlib/number-float64-base-to-float32": "^0.1.1", - "@stdlib/number-float64-base-to-uint32": "^0.1.1", - "@stdlib/random-base-discrete-uniform": "^0.1.0", - "@stdlib/random-base-randu": "^0.1.0", - "@stdlib/utils-keys": "^0.1.0", - "@stdlib/utils-try-require": "^0.1.1", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..e1196bf --- /dev/null +++ b/stats.html @@ -0,0 +1,6177 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From ee715a7538045bf36b5c51e1ebaa61928325b117 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 3 Nov 2023 20:56:32 +0000 Subject: [PATCH 079/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index df32406..4e5a9f9 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.1.1", "@stdlib/math-base-assert-is-safe-integer": "^0.1.0", "@stdlib/math-base-assert-uint32-is-pow2": "^0.1.1", - "@stdlib/utils-define-read-only-property": "^0.1.1" + "@stdlib/utils-define-read-only-property": "^0.1.1", + "@stdlib/error-tools-fmtprodmsg": "^0.1.1" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.1.1", @@ -147,4 +148,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From 6ff1c0643f356d9edab991f4fd1525f9ec1c3bc7 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 3 Nov 2023 23:01:29 +0000 Subject: [PATCH 080/190] Remove files --- index.d.ts | 706 ------ index.mjs | 4 - index.mjs.map | 1 - stats.html | 6177 ------------------------------------------------- 4 files changed, 6888 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index f7192b5..0000000 --- a/index.d.ts +++ /dev/null @@ -1,706 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* tslint:disable:max-line-length */ -/* tslint:disable:max-file-line-count */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index e26c0aa..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.1.1-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index 0ee6204..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index e1196bf..0000000 --- a/stats.html +++ /dev/null @@ -1,6177 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From b1f8e17556fe583d85301bc1117bdcf874eae4b8 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 3 Nov 2023 23:04:56 +0000 Subject: [PATCH 081/190] Auto-generated commit --- .editorconfig | 186 - .eslintrc.js | 1 - .gitattributes | 49 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 797 --- .github/workflows/publish.yml | 255 - .github/workflows/test.yml | 100 - .github/workflows/test_bundles.yml | 189 - .github/workflows/test_coverage.yml | 128 - .github/workflows/test_install.yml | 86 - .gitignore | 188 - .npmignore | 227 - .npmrc | 28 - CHANGELOG.md | 5 - CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 99 +- branches.md | 53 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 - package.json | 111 +- stats.html | 6177 +++++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 38 files changed, 6234 insertions(+), 3820 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 13e9c39..0000000 --- a/.editorconfig +++ /dev/null @@ -1,186 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index ab56cca..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index 3acd3a9..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA corresponding to v0.11.0 - uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index c1c45e7..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index 5f805db..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA corresponding to v3.1.3 - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA corresponding to v3.0.3: - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 265afda..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,797 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA corresponding to v2.0.0 - uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -148,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -210,63 +209,63 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 768a8af..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index 1cdbcd0..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* tslint:disable:no-unused-expression */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..e26c0aa --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.1.1-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..0ee6204 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 4e5a9f9..86a29d2 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.1.0", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.1.1", - "@stdlib/math-base-assert-int32-is-odd": "^0.1.1", - "@stdlib/math-base-assert-is-composite": "^0.1.0", - "@stdlib/math-base-assert-is-coprime": "^0.1.0", - "@stdlib/math-base-assert-is-even": "^0.1.0", - "@stdlib/math-base-assert-is-finite": "^0.1.1", - "@stdlib/math-base-assert-is-finitef": "^0.1.1", - "@stdlib/math-base-assert-is-infinite": "^0.1.1", - "@stdlib/math-base-assert-is-infinitef": "^0.1.1", - "@stdlib/math-base-assert-is-integer": "^0.1.1", - "@stdlib/math-base-assert-is-nan": "^0.1.1", - "@stdlib/math-base-assert-is-nanf": "^0.1.1", - "@stdlib/math-base-assert-is-negative-finite": "^0.1.1", - "@stdlib/math-base-assert-is-negative-integer": "^0.1.1", - "@stdlib/math-base-assert-is-negative-zero": "^0.1.1", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.1", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.1.1", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.1.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.1.1", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.1.1", - "@stdlib/math-base-assert-is-odd": "^0.1.0", - "@stdlib/math-base-assert-is-positive-finite": "^0.1.1", - "@stdlib/math-base-assert-is-positive-integer": "^0.1.1", - "@stdlib/math-base-assert-is-positive-zero": "^0.1.1", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.1", - "@stdlib/math-base-assert-is-prime": "^0.1.1", - "@stdlib/math-base-assert-is-probability": "^0.1.1", - "@stdlib/math-base-assert-is-safe-integer": "^0.1.0", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.1.1", - "@stdlib/utils-define-read-only-property": "^0.1.1", - "@stdlib/error-tools-fmtprodmsg": "^0.1.1" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.1.1", - "@stdlib/bench": "^0.1.0", - "@stdlib/boolean-ctor": "^0.1.1", - "@stdlib/constants-float32-max": "^0.1.1", - "@stdlib/constants-float32-ninf": "^0.1.1", - "@stdlib/constants-float32-pinf": "^0.1.1", - "@stdlib/constants-float32-smallest-subnormal": "^0.1.1", - "@stdlib/constants-float64-max": "^0.1.1", - "@stdlib/constants-float64-max-safe-integer": "^0.1.1", - "@stdlib/constants-float64-min-safe-integer": "^0.1.1", - "@stdlib/constants-float64-ninf": "^0.1.1", - "@stdlib/constants-float64-pinf": "^0.1.1", - "@stdlib/constants-float64-smallest-subnormal": "^0.1.1", - "@stdlib/constants-int32-max": "^0.1.1", - "@stdlib/datasets-primes-100k": "^0.1.1", - "@stdlib/math-base-special-floor": "^0.1.1", - "@stdlib/math-base-special-gcd": "^0.1.0", - "@stdlib/math-base-special-log10": "^0.1.1", - "@stdlib/math-base-special-log2": "^0.1.1", - "@stdlib/math-base-special-pow": "^0.1.0", - "@stdlib/math-base-special-round": "^0.1.1", - "@stdlib/math-base-special-sqrt": "^0.1.1", - "@stdlib/math-base-special-trunc": "^0.1.1", - "@stdlib/number-ctor": "^0.1.1", - "@stdlib/number-float64-base-to-float32": "^0.1.1", - "@stdlib/number-float64-base-to-uint32": "^0.1.1", - "@stdlib/random-base-discrete-uniform": "^0.1.0", - "@stdlib/random-base-randu": "^0.1.0", - "@stdlib/utils-keys": "^0.1.0", - "@stdlib/utils-try-require": "^0.1.1", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..dc48456 --- /dev/null +++ b/stats.html @@ -0,0 +1,6177 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From d6a589076b4b4e4e6f881ded90c57c1519f6df03 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 12 Nov 2023 21:56:46 +0000 Subject: [PATCH 082/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 75439fe..6ac0ad6 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.1.1", "@stdlib/math-base-assert-is-safe-integer": "^0.1.0", "@stdlib/math-base-assert-uint32-is-pow2": "^0.1.1", - "@stdlib/utils-define-read-only-property": "^0.1.1" + "@stdlib/utils-define-read-only-property": "^0.1.1", + "@stdlib/error-tools-fmtprodmsg": "^0.1.1" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.1.1", @@ -147,4 +148,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From e75c3b4902ff9c267f3b260dd51cfe37f5844b68 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 12 Nov 2023 22:46:17 +0000 Subject: [PATCH 083/190] Remove files --- index.d.ts | 705 ------ index.mjs | 4 - index.mjs.map | 1 - stats.html | 6177 ------------------------------------------------- 4 files changed, 6887 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 52025ba..0000000 --- a/index.d.ts +++ /dev/null @@ -1,705 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index e26c0aa..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.1.1-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index 0ee6204..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index dc48456..0000000 --- a/stats.html +++ /dev/null @@ -1,6177 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From efb7b9f1dc7ca4c683191066ce3485353b2010c7 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 12 Nov 2023 22:48:53 +0000 Subject: [PATCH 084/190] Auto-generated commit --- .editorconfig | 186 - .eslintrc.js | 1 - .gitattributes | 49 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 797 --- .github/workflows/publish.yml | 255 - .github/workflows/test.yml | 100 - .github/workflows/test_bundles.yml | 189 - .github/workflows/test_coverage.yml | 128 - .github/workflows/test_install.yml | 86 - .gitignore | 188 - .npmignore | 227 - .npmrc | 28 - CHANGELOG.md | 5 - CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 99 +- branches.md | 53 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 - package.json | 111 +- stats.html | 6177 +++++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 38 files changed, 6234 insertions(+), 3820 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 13e9c39..0000000 --- a/.editorconfig +++ /dev/null @@ -1,186 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tslint.json` files: -[tslint.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index ab56cca..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index 3acd3a9..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA corresponding to v0.11.0 - uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index c1c45e7..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index 5f805db..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA corresponding to v3.1.3 - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA corresponding to v3.0.3: - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 265afda..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,797 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA corresponding to v2.0.0 - uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -148,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -210,63 +209,63 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 768a8af..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..e26c0aa --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.1.1-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..0ee6204 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 6ac0ad6..86a29d2 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.1.0", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.1.1", - "@stdlib/math-base-assert-int32-is-odd": "^0.1.1", - "@stdlib/math-base-assert-is-composite": "^0.1.0", - "@stdlib/math-base-assert-is-coprime": "^0.1.0", - "@stdlib/math-base-assert-is-even": "^0.1.0", - "@stdlib/math-base-assert-is-finite": "^0.1.1", - "@stdlib/math-base-assert-is-finitef": "^0.1.1", - "@stdlib/math-base-assert-is-infinite": "^0.1.1", - "@stdlib/math-base-assert-is-infinitef": "^0.1.1", - "@stdlib/math-base-assert-is-integer": "^0.1.1", - "@stdlib/math-base-assert-is-nan": "^0.1.1", - "@stdlib/math-base-assert-is-nanf": "^0.1.1", - "@stdlib/math-base-assert-is-negative-finite": "^0.1.1", - "@stdlib/math-base-assert-is-negative-integer": "^0.1.1", - "@stdlib/math-base-assert-is-negative-zero": "^0.1.1", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.1", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.1.1", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.1.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.1.1", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.1.1", - "@stdlib/math-base-assert-is-odd": "^0.1.0", - "@stdlib/math-base-assert-is-positive-finite": "^0.1.1", - "@stdlib/math-base-assert-is-positive-integer": "^0.1.1", - "@stdlib/math-base-assert-is-positive-zero": "^0.1.1", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.1", - "@stdlib/math-base-assert-is-prime": "^0.1.1", - "@stdlib/math-base-assert-is-probability": "^0.1.1", - "@stdlib/math-base-assert-is-safe-integer": "^0.1.0", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.1.1", - "@stdlib/utils-define-read-only-property": "^0.1.1", - "@stdlib/error-tools-fmtprodmsg": "^0.1.1" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.1.1", - "@stdlib/bench": "^0.2.0", - "@stdlib/boolean-ctor": "^0.1.1", - "@stdlib/constants-float32-max": "^0.1.1", - "@stdlib/constants-float32-ninf": "^0.1.1", - "@stdlib/constants-float32-pinf": "^0.1.1", - "@stdlib/constants-float32-smallest-subnormal": "^0.1.1", - "@stdlib/constants-float64-max": "^0.1.1", - "@stdlib/constants-float64-max-safe-integer": "^0.1.1", - "@stdlib/constants-float64-min-safe-integer": "^0.1.1", - "@stdlib/constants-float64-ninf": "^0.1.1", - "@stdlib/constants-float64-pinf": "^0.1.1", - "@stdlib/constants-float64-smallest-subnormal": "^0.1.1", - "@stdlib/constants-int32-max": "^0.1.1", - "@stdlib/datasets-primes-100k": "^0.1.1", - "@stdlib/math-base-special-floor": "^0.1.1", - "@stdlib/math-base-special-gcd": "^0.1.0", - "@stdlib/math-base-special-log10": "^0.1.1", - "@stdlib/math-base-special-log2": "^0.1.1", - "@stdlib/math-base-special-pow": "^0.1.0", - "@stdlib/math-base-special-round": "^0.1.1", - "@stdlib/math-base-special-sqrt": "^0.1.1", - "@stdlib/math-base-special-trunc": "^0.1.1", - "@stdlib/number-ctor": "^0.1.1", - "@stdlib/number-float64-base-to-float32": "^0.1.1", - "@stdlib/number-float64-base-to-uint32": "^0.1.1", - "@stdlib/random-base-discrete-uniform": "^0.1.0", - "@stdlib/random-base-randu": "^0.1.0", - "@stdlib/utils-keys": "^0.1.0", - "@stdlib/utils-try-require": "^0.1.1", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..ce27bc5 --- /dev/null +++ b/stats.html @@ -0,0 +1,6177 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From b3221484a0c5e256a92fe19ac75408ae337f1056 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 1 Dec 2023 06:09:25 +0000 Subject: [PATCH 085/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b604bca..79aa8d5 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.1.1", "@stdlib/math-base-assert-is-safe-integer": "^0.1.0", "@stdlib/math-base-assert-uint32-is-pow2": "^0.1.1", - "@stdlib/utils-define-read-only-property": "^0.1.1" + "@stdlib/utils-define-read-only-property": "^0.1.1", + "@stdlib/error-tools-fmtprodmsg": "^0.1.1" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.1.1", @@ -147,4 +148,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From d697640dbfec9d54b797f0eeafddf8e088077ebe Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 2 Dec 2023 00:12:59 +0000 Subject: [PATCH 086/190] Remove files --- index.d.ts | 705 ------ index.mjs | 4 - index.mjs.map | 1 - stats.html | 6177 ------------------------------------------------- 4 files changed, 6887 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 52025ba..0000000 --- a/index.d.ts +++ /dev/null @@ -1,705 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index e26c0aa..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.1.1-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index 0ee6204..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index ce27bc5..0000000 --- a/stats.html +++ /dev/null @@ -1,6177 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From 147e2267649fd8d646cce8eabfdaabf4acb1bd24 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 2 Dec 2023 00:15:31 +0000 Subject: [PATCH 087/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 49 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 797 --- .github/workflows/publish.yml | 255 - .github/workflows/test.yml | 100 - .github/workflows/test_bundles.yml | 189 - .github/workflows/test_coverage.yml | 128 - .github/workflows/test_install.yml | 86 - .gitignore | 188 - .npmignore | 227 - .npmrc | 28 - CHANGELOG.md | 5 - CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 99 +- branches.md | 53 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 - package.json | 111 +- stats.html | 6177 +++++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 39 files changed, 6234 insertions(+), 3816 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 60d743f..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 7a1eb90..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2023-12-01T02:44:18.680Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index ab56cca..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index 3acd3a9..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA corresponding to v0.11.0 - uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index c1c45e7..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index 5f805db..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA corresponding to v3.1.3 - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA corresponding to v3.0.3: - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 265afda..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,797 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA corresponding to v2.0.0 - uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 16 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -148,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -210,63 +209,63 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/branches.md b/branches.md deleted file mode 100644 index 768a8af..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..e26c0aa --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.1.1-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..0ee6204 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 79aa8d5..86a29d2 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.1.0", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.1.1", - "@stdlib/math-base-assert-int32-is-odd": "^0.1.1", - "@stdlib/math-base-assert-is-composite": "^0.1.0", - "@stdlib/math-base-assert-is-coprime": "^0.1.0", - "@stdlib/math-base-assert-is-even": "^0.1.0", - "@stdlib/math-base-assert-is-finite": "^0.1.1", - "@stdlib/math-base-assert-is-finitef": "^0.1.1", - "@stdlib/math-base-assert-is-infinite": "^0.1.1", - "@stdlib/math-base-assert-is-infinitef": "^0.1.1", - "@stdlib/math-base-assert-is-integer": "^0.1.1", - "@stdlib/math-base-assert-is-nan": "^0.1.1", - "@stdlib/math-base-assert-is-nanf": "^0.1.1", - "@stdlib/math-base-assert-is-negative-finite": "^0.1.1", - "@stdlib/math-base-assert-is-negative-integer": "^0.1.1", - "@stdlib/math-base-assert-is-negative-zero": "^0.1.1", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.1", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.1.1", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.1.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.1.1", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.1.1", - "@stdlib/math-base-assert-is-odd": "^0.1.0", - "@stdlib/math-base-assert-is-positive-finite": "^0.1.1", - "@stdlib/math-base-assert-is-positive-integer": "^0.1.1", - "@stdlib/math-base-assert-is-positive-zero": "^0.1.1", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.1", - "@stdlib/math-base-assert-is-prime": "^0.1.1", - "@stdlib/math-base-assert-is-probability": "^0.1.1", - "@stdlib/math-base-assert-is-safe-integer": "^0.1.0", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.1.1", - "@stdlib/utils-define-read-only-property": "^0.1.1", - "@stdlib/error-tools-fmtprodmsg": "^0.1.1" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.1.1", - "@stdlib/bench": "^0.2.1", - "@stdlib/boolean-ctor": "^0.1.1", - "@stdlib/constants-float32-max": "^0.1.1", - "@stdlib/constants-float32-ninf": "^0.1.1", - "@stdlib/constants-float32-pinf": "^0.1.1", - "@stdlib/constants-float32-smallest-subnormal": "^0.1.1", - "@stdlib/constants-float64-max": "^0.1.1", - "@stdlib/constants-float64-max-safe-integer": "^0.1.1", - "@stdlib/constants-float64-min-safe-integer": "^0.1.1", - "@stdlib/constants-float64-ninf": "^0.1.1", - "@stdlib/constants-float64-pinf": "^0.1.1", - "@stdlib/constants-float64-smallest-subnormal": "^0.1.1", - "@stdlib/constants-int32-max": "^0.1.1", - "@stdlib/datasets-primes-100k": "^0.1.1", - "@stdlib/math-base-special-floor": "^0.1.1", - "@stdlib/math-base-special-gcd": "^0.1.0", - "@stdlib/math-base-special-log10": "^0.1.1", - "@stdlib/math-base-special-log2": "^0.1.1", - "@stdlib/math-base-special-pow": "^0.1.0", - "@stdlib/math-base-special-round": "^0.1.1", - "@stdlib/math-base-special-sqrt": "^0.1.1", - "@stdlib/math-base-special-trunc": "^0.1.1", - "@stdlib/number-ctor": "^0.1.1", - "@stdlib/number-float64-base-to-float32": "^0.1.1", - "@stdlib/number-float64-base-to-uint32": "^0.1.1", - "@stdlib/random-base-discrete-uniform": "^0.1.0", - "@stdlib/random-base-randu": "^0.1.0", - "@stdlib/utils-keys": "^0.1.0", - "@stdlib/utils-try-require": "^0.1.1", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..e54e7bc --- /dev/null +++ b/stats.html @@ -0,0 +1,6177 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 5c2cff5c4e605fde85379279a38b1515f1fe5f09 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 1 Jan 2024 03:54:24 +0000 Subject: [PATCH 088/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7922c1b..f66485e 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.1.1", "@stdlib/math-base-assert-is-safe-integer": "^0.1.0", "@stdlib/math-base-assert-uint32-is-pow2": "^0.1.1", - "@stdlib/utils-define-read-only-property": "^0.1.1" + "@stdlib/utils-define-read-only-property": "^0.1.1", + "@stdlib/error-tools-fmtprodmsg": "^0.1.1" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.1.1", @@ -147,4 +148,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From 5894b107d27c1792e8c52217e71afc3bcc19b03d Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 1 Jan 2024 09:53:02 +0000 Subject: [PATCH 089/190] Remove files --- index.d.ts | 705 ------ index.mjs | 4 - index.mjs.map | 1 - stats.html | 6177 ------------------------------------------------- 4 files changed, 6887 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 52025ba..0000000 --- a/index.d.ts +++ /dev/null @@ -1,705 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index e26c0aa..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2023 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.1.1-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index 0ee6204..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index e54e7bc..0000000 --- a/stats.html +++ /dev/null @@ -1,6177 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From 4d7db6770edcfe3c19c94fa1ede81e3cc9dc3df8 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 1 Jan 2024 09:53:48 +0000 Subject: [PATCH 090/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 49 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 797 --- .github/workflows/publish.yml | 255 - .github/workflows/test.yml | 100 - .github/workflows/test_bundles.yml | 189 - .github/workflows/test_coverage.yml | 128 - .github/workflows/test_install.yml | 86 - .gitignore | 188 - .npmignore | 228 - .npmrc | 28 - CHANGELOG.md | 5 - CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 99 +- SECURITY.md | 5 - branches.md | 53 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 - package.json | 111 +- stats.html | 6177 +++++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 40 files changed, 6234 insertions(+), 3822 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 60d743f..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index fdc75ad..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2024-01-01T02:22:26.551Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 30656c4..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index 3acd3a9..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA corresponding to v0.11.0 - uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index c92f5c4..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index 8d1f0d3..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA corresponding to v3.1.3 - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index e1e3539..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,797 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA corresponding to v2.0.0 - uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -148,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -210,63 +209,63 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 768a8af..0000000 --- a/branches.md +++ /dev/null @@ -1,53 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers. -- **deno**: [Deno][deno-url] branch for use in Deno. -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments. - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..1fa6447 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.1.1-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..0ee6204 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index f66485e..86a29d2 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.1.0", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.1.1", - "@stdlib/math-base-assert-int32-is-odd": "^0.1.1", - "@stdlib/math-base-assert-is-composite": "^0.1.0", - "@stdlib/math-base-assert-is-coprime": "^0.1.0", - "@stdlib/math-base-assert-is-even": "^0.1.0", - "@stdlib/math-base-assert-is-finite": "^0.1.1", - "@stdlib/math-base-assert-is-finitef": "^0.1.1", - "@stdlib/math-base-assert-is-infinite": "^0.1.1", - "@stdlib/math-base-assert-is-infinitef": "^0.1.1", - "@stdlib/math-base-assert-is-integer": "^0.1.1", - "@stdlib/math-base-assert-is-nan": "^0.1.1", - "@stdlib/math-base-assert-is-nanf": "^0.1.1", - "@stdlib/math-base-assert-is-negative-finite": "^0.1.1", - "@stdlib/math-base-assert-is-negative-integer": "^0.1.1", - "@stdlib/math-base-assert-is-negative-zero": "^0.1.1", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.1", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.1.1", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.1.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.1.1", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.1.1", - "@stdlib/math-base-assert-is-odd": "^0.1.0", - "@stdlib/math-base-assert-is-positive-finite": "^0.1.1", - "@stdlib/math-base-assert-is-positive-integer": "^0.1.1", - "@stdlib/math-base-assert-is-positive-zero": "^0.1.1", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.1", - "@stdlib/math-base-assert-is-prime": "^0.1.1", - "@stdlib/math-base-assert-is-probability": "^0.1.1", - "@stdlib/math-base-assert-is-safe-integer": "^0.1.0", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.1.1", - "@stdlib/utils-define-read-only-property": "^0.1.1", - "@stdlib/error-tools-fmtprodmsg": "^0.1.1" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.1.1", - "@stdlib/boolean-ctor": "^0.1.1", - "@stdlib/constants-float32-max": "^0.1.1", - "@stdlib/constants-float32-ninf": "^0.1.1", - "@stdlib/constants-float32-pinf": "^0.1.1", - "@stdlib/constants-float32-smallest-subnormal": "^0.1.1", - "@stdlib/constants-float64-max": "^0.1.1", - "@stdlib/constants-float64-max-safe-integer": "^0.1.1", - "@stdlib/constants-float64-min-safe-integer": "^0.1.1", - "@stdlib/constants-float64-ninf": "^0.1.1", - "@stdlib/constants-float64-pinf": "^0.1.1", - "@stdlib/constants-float64-smallest-subnormal": "^0.1.1", - "@stdlib/constants-int32-max": "^0.1.1", - "@stdlib/datasets-primes-100k": "^0.1.1", - "@stdlib/math-base-special-floor": "^0.1.1", - "@stdlib/math-base-special-gcd": "^0.1.0", - "@stdlib/math-base-special-log10": "^0.1.1", - "@stdlib/math-base-special-log2": "^0.1.1", - "@stdlib/math-base-special-pow": "^0.1.0", - "@stdlib/math-base-special-round": "^0.1.1", - "@stdlib/math-base-special-sqrt": "^0.1.1", - "@stdlib/math-base-special-trunc": "^0.1.1", - "@stdlib/number-ctor": "^0.1.1", - "@stdlib/number-float64-base-to-float32": "^0.1.1", - "@stdlib/number-float64-base-to-uint32": "^0.1.1", - "@stdlib/random-base-discrete-uniform": "^0.1.0", - "@stdlib/random-base-randu": "^0.1.0", - "@stdlib/utils-keys": "^0.1.0", - "@stdlib/utils-try-require": "^0.1.1", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.1.2" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..0b64e76 --- /dev/null +++ b/stats.html @@ -0,0 +1,6177 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From e61cd2b09c082e0d5177ece2a1c4d817338cf620 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 1 Feb 2024 04:10:42 +0000 Subject: [PATCH 091/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7922c1b..f66485e 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.1.1", "@stdlib/math-base-assert-is-safe-integer": "^0.1.0", "@stdlib/math-base-assert-uint32-is-pow2": "^0.1.1", - "@stdlib/utils-define-read-only-property": "^0.1.1" + "@stdlib/utils-define-read-only-property": "^0.1.1", + "@stdlib/error-tools-fmtprodmsg": "^0.1.1" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.1.1", @@ -147,4 +148,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From de8447c3ece6effb961cdde62f995a11089674ac Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 1 Feb 2024 08:55:11 +0000 Subject: [PATCH 092/190] Remove files --- index.d.ts | 705 ------ index.mjs | 4 - index.mjs.map | 1 - stats.html | 6177 ------------------------------------------------- 4 files changed, 6887 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 52025ba..0000000 --- a/index.d.ts +++ /dev/null @@ -1,705 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index 1fa6447..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.1.1-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index 0ee6204..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 0b64e76..0000000 --- a/stats.html +++ /dev/null @@ -1,6177 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From ccde75da45101b30ba5e1f392b8a9805d188f751 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 1 Feb 2024 08:55:53 +0000 Subject: [PATCH 093/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 49 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 797 --- .github/workflows/publish.yml | 255 - .github/workflows/test.yml | 100 - .github/workflows/test_bundles.yml | 189 - .github/workflows/test_coverage.yml | 128 - .github/workflows/test_install.yml | 86 - .gitignore | 188 - .npmignore | 228 - .npmrc | 28 - CHANGELOG.md | 5 - CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 101 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 - package.json | 111 +- stats.html | 6177 +++++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 40 files changed, 6234 insertions(+), 3827 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 60d743f..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 4cc7831..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2024-02-01T02:50:23.313Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index 30656c4..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index 3acd3a9..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA corresponding to v0.11.0 - uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index c92f5c4..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index 8d1f0d3..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA corresponding to v3.1.3 - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index e1e3539..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,797 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA corresponding to v2.0.0 - uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA corresponding to v3.8.1 - uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -150,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -215,63 +212,63 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..1fa6447 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.1.1-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..0ee6204 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index f66485e..86a29d2 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.1.0", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.1.1", - "@stdlib/math-base-assert-int32-is-odd": "^0.1.1", - "@stdlib/math-base-assert-is-composite": "^0.1.0", - "@stdlib/math-base-assert-is-coprime": "^0.1.0", - "@stdlib/math-base-assert-is-even": "^0.1.0", - "@stdlib/math-base-assert-is-finite": "^0.1.1", - "@stdlib/math-base-assert-is-finitef": "^0.1.1", - "@stdlib/math-base-assert-is-infinite": "^0.1.1", - "@stdlib/math-base-assert-is-infinitef": "^0.1.1", - "@stdlib/math-base-assert-is-integer": "^0.1.1", - "@stdlib/math-base-assert-is-nan": "^0.1.1", - "@stdlib/math-base-assert-is-nanf": "^0.1.1", - "@stdlib/math-base-assert-is-negative-finite": "^0.1.1", - "@stdlib/math-base-assert-is-negative-integer": "^0.1.1", - "@stdlib/math-base-assert-is-negative-zero": "^0.1.1", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.1", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.1.1", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.1.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.1.1", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.1.1", - "@stdlib/math-base-assert-is-odd": "^0.1.0", - "@stdlib/math-base-assert-is-positive-finite": "^0.1.1", - "@stdlib/math-base-assert-is-positive-integer": "^0.1.1", - "@stdlib/math-base-assert-is-positive-zero": "^0.1.1", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.1", - "@stdlib/math-base-assert-is-prime": "^0.1.1", - "@stdlib/math-base-assert-is-probability": "^0.1.1", - "@stdlib/math-base-assert-is-safe-integer": "^0.1.0", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.1.1", - "@stdlib/utils-define-read-only-property": "^0.1.1", - "@stdlib/error-tools-fmtprodmsg": "^0.1.1" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.1.1", - "@stdlib/boolean-ctor": "^0.1.1", - "@stdlib/constants-float32-max": "^0.1.1", - "@stdlib/constants-float32-ninf": "^0.1.1", - "@stdlib/constants-float32-pinf": "^0.1.1", - "@stdlib/constants-float32-smallest-subnormal": "^0.1.1", - "@stdlib/constants-float64-max": "^0.1.1", - "@stdlib/constants-float64-max-safe-integer": "^0.1.1", - "@stdlib/constants-float64-min-safe-integer": "^0.1.1", - "@stdlib/constants-float64-ninf": "^0.1.1", - "@stdlib/constants-float64-pinf": "^0.1.1", - "@stdlib/constants-float64-smallest-subnormal": "^0.1.1", - "@stdlib/constants-int32-max": "^0.1.1", - "@stdlib/datasets-primes-100k": "^0.1.1", - "@stdlib/math-base-special-floor": "^0.1.1", - "@stdlib/math-base-special-gcd": "^0.1.0", - "@stdlib/math-base-special-log10": "^0.1.1", - "@stdlib/math-base-special-log2": "^0.1.1", - "@stdlib/math-base-special-pow": "^0.1.0", - "@stdlib/math-base-special-round": "^0.1.1", - "@stdlib/math-base-special-sqrt": "^0.1.1", - "@stdlib/math-base-special-trunc": "^0.1.1", - "@stdlib/number-ctor": "^0.1.1", - "@stdlib/number-float64-base-to-float32": "^0.1.1", - "@stdlib/number-float64-base-to-uint32": "^0.1.1", - "@stdlib/random-base-discrete-uniform": "^0.1.0", - "@stdlib/random-base-randu": "^0.1.0", - "@stdlib/utils-keys": "^0.1.0", - "@stdlib/utils-try-require": "^0.1.1", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.1.2" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..5c6b0e1 --- /dev/null +++ b/stats.html @@ -0,0 +1,6177 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 2866c9863fed8e7bb722b824d5ab690a7f3ee60c Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Wed, 14 Feb 2024 07:56:10 +0000 Subject: [PATCH 094/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a2b4f0d..0d34a81 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.2.0", "@stdlib/math-base-assert-is-safe-integer": "^0.2.0", "@stdlib/math-base-assert-uint32-is-pow2": "^0.2.0", - "@stdlib/utils-define-read-only-property": "^0.2.0" + "@stdlib/utils-define-read-only-property": "^0.2.0", + "@stdlib/error-tools-fmtprodmsg": "^0.2.0" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.1.1", @@ -147,4 +148,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From c593fd830cb92d808194ed5367f0a87141441e68 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Wed, 14 Feb 2024 15:58:54 +0000 Subject: [PATCH 095/190] Remove files --- index.d.ts | 705 ------ index.mjs | 4 - index.mjs.map | 1 - stats.html | 6177 ------------------------------------------------- 4 files changed, 6887 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 52025ba..0000000 --- a/index.d.ts +++ /dev/null @@ -1,705 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index 1fa6447..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.1.1-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.1.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.1.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.1.1-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.1.1-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.1.1-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.1.1-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.1.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.1.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.1.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.1.1-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.1.1-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index 0ee6204..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 5c6b0e1..0000000 --- a/stats.html +++ /dev/null @@ -1,6177 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From 44cb3ac6dae0aee0caf8f1e59f30f0443353fee9 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Wed, 14 Feb 2024 15:59:55 +0000 Subject: [PATCH 096/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 49 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 797 --- .github/workflows/publish.yml | 255 - .github/workflows/test.yml | 100 - .github/workflows/test_bundles.yml | 189 - .github/workflows/test_coverage.yml | 132 - .github/workflows/test_install.yml | 86 - .gitignore | 188 - .npmignore | 228 - .npmrc | 28 - CHANGELOG.md | 5 - CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 101 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 - package.json | 111 +- stats.html | 6177 +++++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 39 files changed, 6234 insertions(+), 3830 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 60d743f..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index e9f019d..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA corresponding to v3.1.3 - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 9106b5d..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,797 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA corresponding to v2.0.0 - uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -150,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -215,63 +212,63 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..0b7e819 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.0-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.2.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.2.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.2.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.2.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.1.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.1.0-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.1.0-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.0-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.0-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.0-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.0-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.1.1-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.1.1-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.0-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.0-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.0-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.0-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.2.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.2.0-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.1.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.0-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.0-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.1-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.2.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.2.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.2.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.2.0-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.1.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.2.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.2.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.1.1-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.0-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.0-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.1.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.0-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.0-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.1.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.2.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.2.0-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..0ee6204 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 0d34a81..ff2c245 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.2.0", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.2.0", - "@stdlib/math-base-assert-int32-is-odd": "^0.2.0", - "@stdlib/math-base-assert-is-composite": "^0.2.0", - "@stdlib/math-base-assert-is-coprime": "^0.2.0", - "@stdlib/math-base-assert-is-even": "^0.2.0", - "@stdlib/math-base-assert-is-finite": "^0.2.0", - "@stdlib/math-base-assert-is-finitef": "^0.2.0", - "@stdlib/math-base-assert-is-infinite": "^0.2.0", - "@stdlib/math-base-assert-is-infinitef": "^0.2.0", - "@stdlib/math-base-assert-is-integer": "^0.2.0", - "@stdlib/math-base-assert-is-nan": "^0.2.0", - "@stdlib/math-base-assert-is-nanf": "^0.2.0", - "@stdlib/math-base-assert-is-negative-finite": "^0.2.0", - "@stdlib/math-base-assert-is-negative-integer": "^0.2.0", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.0", - "@stdlib/math-base-assert-is-negative-zerof": "^0.2.0", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.2.0", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.0", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.2.0", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.2.0", - "@stdlib/math-base-assert-is-odd": "^0.2.0", - "@stdlib/math-base-assert-is-positive-finite": "^0.2.0", - "@stdlib/math-base-assert-is-positive-integer": "^0.2.0", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.0", - "@stdlib/math-base-assert-is-positive-zerof": "^0.2.0", - "@stdlib/math-base-assert-is-prime": "^0.2.0", - "@stdlib/math-base-assert-is-probability": "^0.2.0", - "@stdlib/math-base-assert-is-safe-integer": "^0.2.0", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.2.0", - "@stdlib/utils-define-read-only-property": "^0.2.0", - "@stdlib/error-tools-fmtprodmsg": "^0.2.0" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.1.1", - "@stdlib/boolean-ctor": "^0.1.1", - "@stdlib/constants-float32-max": "^0.2.0", - "@stdlib/constants-float32-ninf": "^0.1.1", - "@stdlib/constants-float32-pinf": "^0.1.1", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.0", - "@stdlib/constants-float64-max": "^0.1.1", - "@stdlib/constants-float64-max-safe-integer": "^0.2.0", - "@stdlib/constants-float64-min-safe-integer": "^0.2.0", - "@stdlib/constants-float64-ninf": "^0.1.1", - "@stdlib/constants-float64-pinf": "^0.1.1", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.0", - "@stdlib/constants-int32-max": "^0.1.1", - "@stdlib/datasets-primes-100k": "^0.2.0", - "@stdlib/math-base-special-floor": "^0.1.1", - "@stdlib/math-base-special-gcd": "^0.2.0", - "@stdlib/math-base-special-log10": "^0.2.0", - "@stdlib/math-base-special-log2": "^0.1.1", - "@stdlib/math-base-special-pow": "^0.1.0", - "@stdlib/math-base-special-round": "^0.1.1", - "@stdlib/math-base-special-sqrt": "^0.1.1", - "@stdlib/math-base-special-trunc": "^0.1.1", - "@stdlib/number-ctor": "^0.1.1", - "@stdlib/number-float64-base-to-float32": "^0.1.1", - "@stdlib/number-float64-base-to-uint32": "^0.1.1", - "@stdlib/random-base-discrete-uniform": "^0.1.0", - "@stdlib/random-base-randu": "^0.1.0", - "@stdlib/utils-keys": "^0.1.0", - "@stdlib/utils-try-require": "^0.2.0", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.1.2" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..b8d87c6 --- /dev/null +++ b/stats.html @@ -0,0 +1,6177 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From c5fa28454171670cfa499bee63228850cf8807b7 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Wed, 14 Feb 2024 19:14:09 +0000 Subject: [PATCH 097/190] Update README.md for ESM bundle v0.2.0 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 165926c..1a5a412 100644 --- a/README.md +++ b/README.md @@ -42,13 +42,13 @@ limitations under the License. ## Usage ```javascript -import ns from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@esm/index.mjs'; +import ns from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@v0.2.0-esm/index.mjs'; ``` You can also import the following named exports from the package: ```javascript -import { isComposite, isCoprime, isEven, isEvenInt32, isFinite, isFinitef, isInfinite, isInfinitef, isInteger, isNegativeFinite, isNegativeInteger, isNegativeZero, isNegativeZerof, isNonNegativeFinite, isNonNegativeInteger, isNonPositiveFinite, isNonPositiveInteger, isOdd, isOddInt32, isPositiveFinite, isPositiveInteger, isPositiveZero, isPositiveZerof, isPow2Uint32, isPrime, isProbability, isSafeInteger, isnan, isnanf } from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@esm/index.mjs'; +import { isComposite, isCoprime, isEven, isEvenInt32, isFinite, isFinitef, isInfinite, isInfinitef, isInteger, isNegativeFinite, isNegativeInteger, isNegativeZero, isNegativeZerof, isNonNegativeFinite, isNonNegativeInteger, isNonPositiveFinite, isNonPositiveInteger, isOdd, isOddInt32, isPositiveFinite, isPositiveInteger, isPositiveZero, isPositiveZerof, isPow2Uint32, isPrime, isProbability, isSafeInteger, isnan, isnanf } from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@v0.2.0-esm/index.mjs'; ``` #### ns @@ -117,7 +117,7 @@ var o = ns; - - - - From 625bf04691eb112f7ce3e035286d0114e5768290 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 24 Feb 2024 15:45:31 +0000 Subject: [PATCH 101/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 49 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 797 ---- .github/workflows/publish.yml | 249 -- .github/workflows/test.yml | 100 - .github/workflows/test_bundles.yml | 189 - .github/workflows/test_coverage.yml | 132 - .github/workflows/test_install.yml | 86 - .gitignore | 188 - .npmignore | 228 - .npmrc | 28 - CHANGELOG.md | 5 - CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 --- README.md | 101 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 -- package.json | 111 +- stats.html | 4842 +++++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 39 files changed, 4899 insertions(+), 3824 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 60d743f..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 9106b5d..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,797 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA corresponding to v2.0.0 - uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -150,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -215,63 +212,63 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..78250f9 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.1-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.2.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.2.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.2.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.2.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.2.1-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.2.1-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.0-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.0-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.1-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.1-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.1-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.1-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.1-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.1-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.1-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.1-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.1-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.1-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.1-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.1-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.1-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.1-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.2.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.2.1-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.2.1-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.2.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.1-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.2-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.2.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.2.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.2-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.2.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.2.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.2-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.2.1-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.2.1-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.2.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.2.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.2.1-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.2.1-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.1-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.2-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.2-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.2.1-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.2.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.1-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.1-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.2.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.2.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.2.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.2.1-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..0ee6204 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 1d96758..b74ac7a 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.2.1", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.2.1", - "@stdlib/math-base-assert-int32-is-odd": "^0.2.1", - "@stdlib/math-base-assert-is-composite": "^0.2.1", - "@stdlib/math-base-assert-is-coprime": "^0.2.1", - "@stdlib/math-base-assert-is-even": "^0.2.1", - "@stdlib/math-base-assert-is-finite": "^0.2.1", - "@stdlib/math-base-assert-is-finitef": "^0.2.1", - "@stdlib/math-base-assert-is-infinite": "^0.2.1", - "@stdlib/math-base-assert-is-infinitef": "^0.2.1", - "@stdlib/math-base-assert-is-integer": "^0.2.1", - "@stdlib/math-base-assert-is-nan": "^0.2.1", - "@stdlib/math-base-assert-is-nanf": "^0.2.1", - "@stdlib/math-base-assert-is-negative-finite": "^0.2.1", - "@stdlib/math-base-assert-is-negative-integer": "^0.2.1", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.1", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.2", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.2.1", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.1.2", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.2.1", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.1.2", - "@stdlib/math-base-assert-is-odd": "^0.2.1", - "@stdlib/math-base-assert-is-positive-finite": "^0.2.1", - "@stdlib/math-base-assert-is-positive-integer": "^0.2.1", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.1", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.2", - "@stdlib/math-base-assert-is-prime": "^0.2.1", - "@stdlib/math-base-assert-is-probability": "^0.2.1", - "@stdlib/math-base-assert-is-safe-integer": "^0.2.1", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.2.1", - "@stdlib/utils-define-read-only-property": "^0.2.1", - "@stdlib/error-tools-fmtprodmsg": "^0.2.1" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.1", - "@stdlib/boolean-ctor": "^0.2.1", - "@stdlib/constants-float32-max": "^0.2.1", - "@stdlib/constants-float32-ninf": "^0.2.1", - "@stdlib/constants-float32-pinf": "^0.2.1", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.1", - "@stdlib/constants-float64-max": "^0.2.1", - "@stdlib/constants-float64-max-safe-integer": "^0.2.1", - "@stdlib/constants-float64-min-safe-integer": "^0.2.1", - "@stdlib/constants-float64-ninf": "^0.2.1", - "@stdlib/constants-float64-pinf": "^0.2.1", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.1", - "@stdlib/constants-int32-max": "^0.2.1", - "@stdlib/datasets-primes-100k": "^0.2.1", - "@stdlib/math-base-special-floor": "^0.2.1", - "@stdlib/math-base-special-gcd": "^0.2.1", - "@stdlib/math-base-special-log10": "^0.2.1", - "@stdlib/math-base-special-log2": "^0.2.1", - "@stdlib/math-base-special-pow": "^0.2.0", - "@stdlib/math-base-special-round": "^0.2.1", - "@stdlib/math-base-special-sqrt": "^0.2.1", - "@stdlib/math-base-special-trunc": "^0.2.0", - "@stdlib/number-ctor": "^0.2.1", - "@stdlib/number-float64-base-to-float32": "^0.2.1", - "@stdlib/number-float64-base-to-uint32": "^0.2.1", - "@stdlib/random-base-discrete-uniform": "^0.2.0", - "@stdlib/random-base-randu": "^0.2.0", - "@stdlib/utils-keys": "^0.2.0", - "@stdlib/utils-try-require": "^0.2.1", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.0" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..3b0303f --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 9ce50bda87f398c98f04025bb84be93ea9500ca0 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 24 Feb 2024 16:14:45 +0000 Subject: [PATCH 102/190] Update README.md for ESM bundle v0.2.1 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 005e81c..59d9335 100644 --- a/README.md +++ b/README.md @@ -42,13 +42,13 @@ limitations under the License. ## Usage ```javascript -import ns from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@esm/index.mjs'; +import ns from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@v0.2.1-esm/index.mjs'; ``` You can also import the following named exports from the package: ```javascript -import { isComposite, isCoprime, isEven, isEvenInt32, isFinite, isFinitef, isInfinite, isInfinitef, isInteger, isNegativeFinite, isNegativeInteger, isNegativeZero, isNegativeZerof, isNonNegativeFinite, isNonNegativeInteger, isNonPositiveFinite, isNonPositiveInteger, isOdd, isOddInt32, isPositiveFinite, isPositiveInteger, isPositiveZero, isPositiveZerof, isPow2Uint32, isPrime, isProbability, isSafeInteger, isnan, isnanf } from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@esm/index.mjs'; +import { isComposite, isCoprime, isEven, isEvenInt32, isFinite, isFinitef, isInfinite, isInfinitef, isInteger, isNegativeFinite, isNegativeInteger, isNegativeZero, isNegativeZerof, isNonNegativeFinite, isNonNegativeInteger, isNonPositiveFinite, isNonPositiveInteger, isOdd, isOddInt32, isPositiveFinite, isPositiveInteger, isPositiveZero, isPositiveZerof, isPow2Uint32, isPrime, isProbability, isSafeInteger, isnan, isnanf } from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@v0.2.1-esm/index.mjs'; ``` #### ns @@ -117,7 +117,7 @@ var o = ns; - - - - From 4d727aaa5b3fd1ab16a47012b35d933bc5abd136 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 1 Mar 2024 07:27:50 +0000 Subject: [PATCH 106/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 49 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 797 ---- .github/workflows/publish.yml | 249 -- .github/workflows/test.yml | 100 - .github/workflows/test_bundles.yml | 189 - .github/workflows/test_coverage.yml | 132 - .github/workflows/test_install.yml | 86 - .gitignore | 188 - .npmignore | 229 - .npmrc | 28 - CHANGELOG.md | 5 - CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 --- README.md | 101 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 -- package.json | 111 +- stats.html | 4842 +++++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 40 files changed, 4899 insertions(+), 3826 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 60d743f..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 989a4cf..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2024-03-01T02:46:03.485Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 9106b5d..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,797 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA corresponding to v2.0.0 - uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -150,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -215,63 +212,63 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..8c6269c --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.1-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.2.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.2.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.2.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.2.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.2.1-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.2.1-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.1-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.1-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.1-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.1-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.1-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.1-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.1-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.1-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.1-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.1-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.1-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.2-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.2-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.1-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.1-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.1-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.2.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.2.1-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.2.1-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.2.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.1-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.2-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.2.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.2.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.2-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.2.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.2.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.2-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.2.1-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.2.1-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.2.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.2.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.2.1-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.2.1-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.1-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.2-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.2-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.2.1-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.2.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.1-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.1-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.2.1-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.2.1-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.2.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.2.1-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..0ee6204 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index dfa5627..b74ac7a 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.2.1", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.2.1", - "@stdlib/math-base-assert-int32-is-odd": "^0.2.1", - "@stdlib/math-base-assert-is-composite": "^0.2.1", - "@stdlib/math-base-assert-is-coprime": "^0.2.1", - "@stdlib/math-base-assert-is-even": "^0.2.1", - "@stdlib/math-base-assert-is-finite": "^0.2.1", - "@stdlib/math-base-assert-is-finitef": "^0.2.1", - "@stdlib/math-base-assert-is-infinite": "^0.2.1", - "@stdlib/math-base-assert-is-infinitef": "^0.2.1", - "@stdlib/math-base-assert-is-integer": "^0.2.2", - "@stdlib/math-base-assert-is-nan": "^0.2.1", - "@stdlib/math-base-assert-is-nanf": "^0.2.1", - "@stdlib/math-base-assert-is-negative-finite": "^0.2.1", - "@stdlib/math-base-assert-is-negative-integer": "^0.2.1", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.1", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.2", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.2.1", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.1.2", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.2.1", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.1.2", - "@stdlib/math-base-assert-is-odd": "^0.2.1", - "@stdlib/math-base-assert-is-positive-finite": "^0.2.1", - "@stdlib/math-base-assert-is-positive-integer": "^0.2.1", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.1", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.2", - "@stdlib/math-base-assert-is-prime": "^0.2.1", - "@stdlib/math-base-assert-is-probability": "^0.2.1", - "@stdlib/math-base-assert-is-safe-integer": "^0.2.1", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.2.1", - "@stdlib/utils-define-read-only-property": "^0.2.1", - "@stdlib/error-tools-fmtprodmsg": "^0.2.1" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.1", - "@stdlib/boolean-ctor": "^0.2.1", - "@stdlib/constants-float32-max": "^0.2.1", - "@stdlib/constants-float32-ninf": "^0.2.1", - "@stdlib/constants-float32-pinf": "^0.2.1", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.1", - "@stdlib/constants-float64-max": "^0.2.1", - "@stdlib/constants-float64-max-safe-integer": "^0.2.1", - "@stdlib/constants-float64-min-safe-integer": "^0.2.1", - "@stdlib/constants-float64-ninf": "^0.2.1", - "@stdlib/constants-float64-pinf": "^0.2.1", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.1", - "@stdlib/constants-int32-max": "^0.2.1", - "@stdlib/datasets-primes-100k": "^0.2.1", - "@stdlib/math-base-special-floor": "^0.2.1", - "@stdlib/math-base-special-gcd": "^0.2.1", - "@stdlib/math-base-special-log10": "^0.2.1", - "@stdlib/math-base-special-log2": "^0.2.1", - "@stdlib/math-base-special-pow": "^0.2.1", - "@stdlib/math-base-special-round": "^0.2.1", - "@stdlib/math-base-special-sqrt": "^0.2.1", - "@stdlib/math-base-special-trunc": "^0.2.1", - "@stdlib/number-ctor": "^0.2.1", - "@stdlib/number-float64-base-to-float32": "^0.2.1", - "@stdlib/number-float64-base-to-uint32": "^0.2.1", - "@stdlib/random-base-discrete-uniform": "^0.2.1", - "@stdlib/random-base-randu": "^0.2.1", - "@stdlib/utils-keys": "^0.2.1", - "@stdlib/utils-try-require": "^0.2.1", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.1" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..f5ab3dd --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From c83b0348f677fd83c9ed8090a18ace8cb2c5b852 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Tue, 5 Mar 2024 12:42:37 +0000 Subject: [PATCH 107/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index cc2fd7f..97029da 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.2.1", "@stdlib/math-base-assert-is-safe-integer": "^0.2.1", "@stdlib/math-base-assert-uint32-is-pow2": "^0.2.1", - "@stdlib/utils-define-read-only-property": "^0.2.1" + "@stdlib/utils-define-read-only-property": "^0.2.1", + "@stdlib/error-tools-fmtprodmsg": "^0.2.1" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.2.1", @@ -147,4 +148,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From 9d8ecf96a2b5508d20adbe90375e2eba52b52e5e Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Tue, 5 Mar 2024 12:43:06 +0000 Subject: [PATCH 108/190] Remove files --- index.d.ts | 705 ------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4842 ------------------------------------------------- 4 files changed, 5552 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 52025ba..0000000 --- a/index.d.ts +++ /dev/null @@ -1,705 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index 8c6269c..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.1-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.2.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.2.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.2.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.2.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.2.1-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.2.1-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.1-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.1-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.1-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.1-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.1-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.1-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.1-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.1-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.1-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.1-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.1-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.2-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.2-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.1-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.1-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.1-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.2.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.2.1-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.2.1-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.2.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.1-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.2-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.2.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.2.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.2-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.2.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.2.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.2-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.2.1-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.2.1-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.2.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.2.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.2.1-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.2.1-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.1-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.2-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.2-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.2.1-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.2.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.1-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.1-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.2.1-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.2.1-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.2.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.2.1-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index 0ee6204..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index f5ab3dd..0000000 --- a/stats.html +++ /dev/null @@ -1,4842 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From d6d8f887d24b7edf34a2ee90c4890f5b38670902 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Tue, 5 Mar 2024 12:43:32 +0000 Subject: [PATCH 109/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 49 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 797 ---- .github/workflows/publish.yml | 249 -- .github/workflows/test.yml | 100 - .github/workflows/test_bundles.yml | 189 - .github/workflows/test_coverage.yml | 132 - .github/workflows/test_install.yml | 86 - .gitignore | 188 - .npmignore | 229 - .npmrc | 28 - CHANGELOG.md | 5 - CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 --- README.md | 101 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 -- package.json | 111 +- stats.html | 4842 +++++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 39 files changed, 4899 insertions(+), 3825 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 60d743f..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 9106b5d..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,797 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA corresponding to v2.0.0 - uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -150,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -215,63 +212,63 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..9bbe3f4 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.1-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.2.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.2.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.2.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.2.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.2.1-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.2.1-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.1-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.1-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.1-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.1-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.1-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.1-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.1-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.1-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.1-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.1-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.1-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.3-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.3-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.1-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.1-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.1-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.2.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.2.1-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.2.1-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.2.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.1-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.2-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.2.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.2.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.2-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.2.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.2.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.2-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.2.1-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.2.1-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.2.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.2.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.2.1-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.2.1-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.1-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.2-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.2-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.2.1-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.2.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.1-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.1-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.2.1-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.2.1-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.2.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.2.1-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..0ee6204 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 97029da..b74ac7a 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.2.1", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.2.1", - "@stdlib/math-base-assert-int32-is-odd": "^0.2.1", - "@stdlib/math-base-assert-is-composite": "^0.2.1", - "@stdlib/math-base-assert-is-coprime": "^0.2.1", - "@stdlib/math-base-assert-is-even": "^0.2.1", - "@stdlib/math-base-assert-is-finite": "^0.2.1", - "@stdlib/math-base-assert-is-finitef": "^0.2.1", - "@stdlib/math-base-assert-is-infinite": "^0.2.1", - "@stdlib/math-base-assert-is-infinitef": "^0.2.1", - "@stdlib/math-base-assert-is-integer": "^0.2.3", - "@stdlib/math-base-assert-is-nan": "^0.2.1", - "@stdlib/math-base-assert-is-nanf": "^0.2.1", - "@stdlib/math-base-assert-is-negative-finite": "^0.2.1", - "@stdlib/math-base-assert-is-negative-integer": "^0.2.1", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.1", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.2", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.2.1", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.1.2", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.2.1", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.1.2", - "@stdlib/math-base-assert-is-odd": "^0.2.1", - "@stdlib/math-base-assert-is-positive-finite": "^0.2.1", - "@stdlib/math-base-assert-is-positive-integer": "^0.2.1", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.1", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.2", - "@stdlib/math-base-assert-is-prime": "^0.2.1", - "@stdlib/math-base-assert-is-probability": "^0.2.1", - "@stdlib/math-base-assert-is-safe-integer": "^0.2.1", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.2.1", - "@stdlib/utils-define-read-only-property": "^0.2.1", - "@stdlib/error-tools-fmtprodmsg": "^0.2.1" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.1", - "@stdlib/boolean-ctor": "^0.2.1", - "@stdlib/constants-float32-max": "^0.2.1", - "@stdlib/constants-float32-ninf": "^0.2.1", - "@stdlib/constants-float32-pinf": "^0.2.1", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.1", - "@stdlib/constants-float64-max": "^0.2.1", - "@stdlib/constants-float64-max-safe-integer": "^0.2.1", - "@stdlib/constants-float64-min-safe-integer": "^0.2.1", - "@stdlib/constants-float64-ninf": "^0.2.1", - "@stdlib/constants-float64-pinf": "^0.2.1", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.1", - "@stdlib/constants-int32-max": "^0.2.1", - "@stdlib/datasets-primes-100k": "^0.2.1", - "@stdlib/math-base-special-floor": "^0.2.2", - "@stdlib/math-base-special-gcd": "^0.2.1", - "@stdlib/math-base-special-log10": "^0.2.1", - "@stdlib/math-base-special-log2": "^0.2.1", - "@stdlib/math-base-special-pow": "^0.2.1", - "@stdlib/math-base-special-round": "^0.2.1", - "@stdlib/math-base-special-sqrt": "^0.2.1", - "@stdlib/math-base-special-trunc": "^0.2.1", - "@stdlib/number-ctor": "^0.2.1", - "@stdlib/number-float64-base-to-float32": "^0.2.1", - "@stdlib/number-float64-base-to-uint32": "^0.2.1", - "@stdlib/random-base-discrete-uniform": "^0.2.1", - "@stdlib/random-base-randu": "^0.2.1", - "@stdlib/utils-keys": "^0.2.1", - "@stdlib/utils-try-require": "^0.2.1", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.1" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..534d9ec --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 85a293b96aa75723fa4cbb79a80a63f730555e39 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 1 Apr 2024 03:26:24 +0000 Subject: [PATCH 110/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index cc2fd7f..97029da 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.2.1", "@stdlib/math-base-assert-is-safe-integer": "^0.2.1", "@stdlib/math-base-assert-uint32-is-pow2": "^0.2.1", - "@stdlib/utils-define-read-only-property": "^0.2.1" + "@stdlib/utils-define-read-only-property": "^0.2.1", + "@stdlib/error-tools-fmtprodmsg": "^0.2.1" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.2.1", @@ -147,4 +148,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From 67e99c76da5449d922d95162f9154f46fc085d40 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 1 Apr 2024 07:25:26 +0000 Subject: [PATCH 111/190] Remove files --- index.d.ts | 705 ------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4842 ------------------------------------------------- 4 files changed, 5552 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 52025ba..0000000 --- a/index.d.ts +++ /dev/null @@ -1,705 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index 9bbe3f4..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.1-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.2.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.2.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.2.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.2.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.2.1-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.2.1-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.1-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.1-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.1-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.1-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.1-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.1-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.1-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.1-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.1-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.1-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.1-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.3-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.3-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.1-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.1-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.1-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.2.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.2.1-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.2.1-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.2.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.1-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.2-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.2.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.2.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.2-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.2.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.2.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.2-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.2.1-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.2.1-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.2.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.2.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.2.1-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.2.1-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.1-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.2-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.2-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.2.1-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.2.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.1-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.1-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.2.1-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.2.1-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.2.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.2.1-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index 0ee6204..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 534d9ec..0000000 --- a/stats.html +++ /dev/null @@ -1,4842 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From 33425a74ebdd2f09292f3960456dc39b62c3c5da Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 1 Apr 2024 07:25:49 +0000 Subject: [PATCH 112/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 49 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 797 ---- .github/workflows/publish.yml | 249 -- .github/workflows/test.yml | 100 - .github/workflows/test_bundles.yml | 189 - .github/workflows/test_coverage.yml | 132 - .github/workflows/test_install.yml | 86 - .gitignore | 188 - .npmignore | 229 - .npmrc | 31 - CHANGELOG.md | 5 - CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 --- README.md | 101 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 -- package.json | 111 +- stats.html | 4842 +++++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 40 files changed, 4899 insertions(+), 3829 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 60d743f..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 02e7148..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2024-04-01T02:18:52.080Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index ec90164..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,797 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA - uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -150,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -215,63 +212,63 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..9bbe3f4 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.1-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.2.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.2.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.2.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.2.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.2.1-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.2.1-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.1-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.1-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.1-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.1-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.1-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.1-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.1-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.1-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.1-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.1-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.1-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.3-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.3-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.1-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.1-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.1-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.2.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.2.1-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.2.1-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.2.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.1-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.2-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.2.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.2.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.2-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.2.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.2.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.2-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.2.1-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.2.1-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.2.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.2.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.2.1-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.2.1-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.1-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.2-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.2-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.2.1-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.2.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.1-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.1-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.2.1-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.2.1-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.2.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.2.1-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..0ee6204 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 97029da..b74ac7a 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.2.1", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.2.1", - "@stdlib/math-base-assert-int32-is-odd": "^0.2.1", - "@stdlib/math-base-assert-is-composite": "^0.2.1", - "@stdlib/math-base-assert-is-coprime": "^0.2.1", - "@stdlib/math-base-assert-is-even": "^0.2.1", - "@stdlib/math-base-assert-is-finite": "^0.2.1", - "@stdlib/math-base-assert-is-finitef": "^0.2.1", - "@stdlib/math-base-assert-is-infinite": "^0.2.1", - "@stdlib/math-base-assert-is-infinitef": "^0.2.1", - "@stdlib/math-base-assert-is-integer": "^0.2.3", - "@stdlib/math-base-assert-is-nan": "^0.2.1", - "@stdlib/math-base-assert-is-nanf": "^0.2.1", - "@stdlib/math-base-assert-is-negative-finite": "^0.2.1", - "@stdlib/math-base-assert-is-negative-integer": "^0.2.1", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.1", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.2", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.2.1", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.1.2", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.2.1", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.1.2", - "@stdlib/math-base-assert-is-odd": "^0.2.1", - "@stdlib/math-base-assert-is-positive-finite": "^0.2.1", - "@stdlib/math-base-assert-is-positive-integer": "^0.2.1", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.1", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.2", - "@stdlib/math-base-assert-is-prime": "^0.2.1", - "@stdlib/math-base-assert-is-probability": "^0.2.1", - "@stdlib/math-base-assert-is-safe-integer": "^0.2.1", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.2.1", - "@stdlib/utils-define-read-only-property": "^0.2.1", - "@stdlib/error-tools-fmtprodmsg": "^0.2.1" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.1", - "@stdlib/boolean-ctor": "^0.2.1", - "@stdlib/constants-float32-max": "^0.2.1", - "@stdlib/constants-float32-ninf": "^0.2.1", - "@stdlib/constants-float32-pinf": "^0.2.1", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.1", - "@stdlib/constants-float64-max": "^0.2.1", - "@stdlib/constants-float64-max-safe-integer": "^0.2.1", - "@stdlib/constants-float64-min-safe-integer": "^0.2.1", - "@stdlib/constants-float64-ninf": "^0.2.1", - "@stdlib/constants-float64-pinf": "^0.2.1", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.1", - "@stdlib/constants-int32-max": "^0.2.1", - "@stdlib/datasets-primes-100k": "^0.2.1", - "@stdlib/math-base-special-floor": "^0.2.2", - "@stdlib/math-base-special-gcd": "^0.2.1", - "@stdlib/math-base-special-log10": "^0.2.1", - "@stdlib/math-base-special-log2": "^0.2.1", - "@stdlib/math-base-special-pow": "^0.2.1", - "@stdlib/math-base-special-round": "^0.2.1", - "@stdlib/math-base-special-sqrt": "^0.2.1", - "@stdlib/math-base-special-trunc": "^0.2.1", - "@stdlib/number-ctor": "^0.2.1", - "@stdlib/number-float64-base-to-float32": "^0.2.1", - "@stdlib/number-float64-base-to-uint32": "^0.2.1", - "@stdlib/random-base-discrete-uniform": "^0.2.1", - "@stdlib/random-base-randu": "^0.2.1", - "@stdlib/utils-keys": "^0.2.1", - "@stdlib/utils-try-require": "^0.2.1", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.1" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..534d9ec --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 427f5e7858fcb17851e594ae4bbd061285ae02cf Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 11 Apr 2024 23:35:14 +0000 Subject: [PATCH 113/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2aab92e..7d59c86 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.2.2", "@stdlib/math-base-assert-is-safe-integer": "^0.2.1", "@stdlib/math-base-assert-uint32-is-pow2": "^0.2.1", - "@stdlib/utils-define-read-only-property": "^0.2.1" + "@stdlib/utils-define-read-only-property": "^0.2.1", + "@stdlib/error-tools-fmtprodmsg": "^0.2.1" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.2.1", @@ -147,4 +148,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From ec436bd8d5b0e0f0b5f79f381bb47f072ce1e700 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 12 Apr 2024 04:15:55 +0000 Subject: [PATCH 114/190] Remove files --- index.d.ts | 705 ------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4842 ------------------------------------------------- 4 files changed, 5552 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 52025ba..0000000 --- a/index.d.ts +++ /dev/null @@ -1,705 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index 9bbe3f4..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.1-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.2.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.2.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.2.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.2.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.2.1-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.2.1-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.1-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.1-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.1-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.1-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.1-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.1-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.1-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.1-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.1-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.1-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.1-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.3-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.3-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.1-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.1-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.1-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.2.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.2.1-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.2.1-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.2.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.1-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.2-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.2.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.2.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.2-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.2.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.2.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.2-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.2.1-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.2.1-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.2.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.2.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.2.1-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.2.1-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.1-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.2-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.2-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.2.1-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.2.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.1-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.1-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.2.1-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.2.1-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.2.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.2.1-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index 0ee6204..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 534d9ec..0000000 --- a/stats.html +++ /dev/null @@ -1,4842 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From 2ac264e1efc7b0c1f9abcf2c5ee82f893719a2b4 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 12 Apr 2024 04:16:23 +0000 Subject: [PATCH 115/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 49 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 797 ---- .github/workflows/publish.yml | 249 -- .github/workflows/test.yml | 100 - .github/workflows/test_bundles.yml | 189 - .github/workflows/test_coverage.yml | 134 - .github/workflows/test_install.yml | 86 - .gitignore | 188 - .npmignore | 229 - .npmrc | 31 - CHANGELOG.md | 5 - CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 --- README.md | 101 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 -- package.json | 111 +- stats.html | 4842 +++++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 39 files changed, 4899 insertions(+), 3830 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 60d743f..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 10a16e6..0000000 --- a/.gitattributes +++ /dev/null @@ -1,49 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/deps/** linguist-vendored=false -/lib/node_modules/** linguist-vendored=false linguist-generated=false -test/fixtures/** linguist-vendored=false -tools/** linguist-vendored=false - -# Override what is considered "documentation" by GitHub's linguist: -examples/** linguist-documentation=false diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index ec90164..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,797 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA - uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 - with: - status: ${{ job.status }} - steps: ${{ toJson(steps) }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure git: - - name: 'Configure git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -150,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -215,63 +212,63 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..c43e18c --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.1-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.2.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.2.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.2.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.2.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.2.1-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.2.1-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.1-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.1-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.2-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.2-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.1-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.1-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.1-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.1-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.1-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.1-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.1-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.4-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.4-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.1-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.1-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.1-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.2.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.2.1-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.2.1-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.2.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.1-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.2-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.2.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.2.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.2-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.2.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.2.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.2-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.2.1-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.2.1-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.2.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.2.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.2.1-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.2.1-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.1-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.2-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.2-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.2.1-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.2.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.2-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.2-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.2.1-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.2.1-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.2.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.2.1-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..0ee6204 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 7d59c86..b74ac7a 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.2.1", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.2.1", - "@stdlib/math-base-assert-int32-is-odd": "^0.2.1", - "@stdlib/math-base-assert-is-composite": "^0.2.1", - "@stdlib/math-base-assert-is-coprime": "^0.2.1", - "@stdlib/math-base-assert-is-even": "^0.2.2", - "@stdlib/math-base-assert-is-finite": "^0.2.1", - "@stdlib/math-base-assert-is-finitef": "^0.2.1", - "@stdlib/math-base-assert-is-infinite": "^0.2.1", - "@stdlib/math-base-assert-is-infinitef": "^0.2.1", - "@stdlib/math-base-assert-is-integer": "^0.2.4", - "@stdlib/math-base-assert-is-nan": "^0.2.1", - "@stdlib/math-base-assert-is-nanf": "^0.2.1", - "@stdlib/math-base-assert-is-negative-finite": "^0.2.1", - "@stdlib/math-base-assert-is-negative-integer": "^0.2.1", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.1", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.2", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.2.1", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.1.2", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.2.1", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.1.2", - "@stdlib/math-base-assert-is-odd": "^0.2.1", - "@stdlib/math-base-assert-is-positive-finite": "^0.2.1", - "@stdlib/math-base-assert-is-positive-integer": "^0.2.1", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.1", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.2", - "@stdlib/math-base-assert-is-prime": "^0.2.1", - "@stdlib/math-base-assert-is-probability": "^0.2.2", - "@stdlib/math-base-assert-is-safe-integer": "^0.2.1", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.2.1", - "@stdlib/utils-define-read-only-property": "^0.2.1", - "@stdlib/error-tools-fmtprodmsg": "^0.2.1" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.1", - "@stdlib/boolean-ctor": "^0.2.1", - "@stdlib/constants-float32-max": "^0.2.1", - "@stdlib/constants-float32-ninf": "^0.2.1", - "@stdlib/constants-float32-pinf": "^0.2.1", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.1", - "@stdlib/constants-float64-max": "^0.2.1", - "@stdlib/constants-float64-max-safe-integer": "^0.2.1", - "@stdlib/constants-float64-min-safe-integer": "^0.2.1", - "@stdlib/constants-float64-ninf": "^0.2.1", - "@stdlib/constants-float64-pinf": "^0.2.1", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.1", - "@stdlib/constants-int32-max": "^0.2.1", - "@stdlib/datasets-primes-100k": "^0.2.1", - "@stdlib/math-base-special-floor": "^0.2.2", - "@stdlib/math-base-special-gcd": "^0.2.1", - "@stdlib/math-base-special-log10": "^0.2.1", - "@stdlib/math-base-special-log2": "^0.2.1", - "@stdlib/math-base-special-pow": "^0.2.1", - "@stdlib/math-base-special-round": "^0.2.1", - "@stdlib/math-base-special-sqrt": "^0.2.1", - "@stdlib/math-base-special-trunc": "^0.2.1", - "@stdlib/number-ctor": "^0.2.1", - "@stdlib/number-float64-base-to-float32": "^0.2.1", - "@stdlib/number-float64-base-to-uint32": "^0.2.1", - "@stdlib/random-base-discrete-uniform": "^0.2.1", - "@stdlib/random-base-randu": "^0.2.1", - "@stdlib/utils-keys": "^0.2.1", - "@stdlib/utils-try-require": "^0.2.1", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.1" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..c3cbf3e --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 20b88e5a7fc327585d38f8c853053e9e5c93b3e9 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 28 Jul 2024 12:41:38 +0000 Subject: [PATCH 116/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d2bbb17..edbf509 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.2.3", "@stdlib/math-base-assert-is-safe-integer": "^0.3.0", "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.0", - "@stdlib/utils-define-read-only-property": "^0.2.2" + "@stdlib/utils-define-read-only-property": "^0.2.2", + "@stdlib/error-tools-fmtprodmsg": "^0.2.2" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.2.2", @@ -147,4 +148,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From d3b2d44bb5fa9526bccc7c7d29fc83ff803129bf Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 28 Jul 2024 12:53:34 +0000 Subject: [PATCH 117/190] Remove files --- index.d.ts | 705 ------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4842 ------------------------------------------------- 4 files changed, 5552 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 52025ba..0000000 --- a/index.d.ts +++ /dev/null @@ -1,705 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index c43e18c..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.1-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.2.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.2.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.2.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.2.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.2.1-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.2.1-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.1-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.1-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.2-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.2-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.1-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.1-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.1-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.1-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.1-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.1-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.1-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.4-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.4-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.1-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.1-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.1-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.2.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.2.1-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.2.1-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.2.1-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.1-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.2-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.2.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.2.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.1.2-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.2.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.2.1-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.2-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.1.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.2.1-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.2.1-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.2.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.2.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.2.1-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.2.1-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.1-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.2-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.2-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.2.1-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.2.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.2-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.2-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.2.1-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.2.1-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.2.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.2.1-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index 0ee6204..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index c3cbf3e..0000000 --- a/stats.html +++ /dev/null @@ -1,4842 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From 3a65bfbfc1b5579d475126491cfaf3d62a1b6c7e Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 28 Jul 2024 12:54:13 +0000 Subject: [PATCH 118/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 66 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 794 ---- .github/workflows/publish.yml | 252 -- .github/workflows/test.yml | 99 - .github/workflows/test_bundles.yml | 186 - .github/workflows/test_coverage.yml | 133 - .github/workflows/test_install.yml | 85 - .gitignore | 188 - .npmignore | 229 - .npmrc | 31 - CHANGELOG.md | 2133 --------- CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 --- README.md | 101 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 -- package.json | 111 +- stats.html | 4842 +++++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 39 files changed, 4899 insertions(+), 5969 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 60d743f..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 1c88e69..0000000 --- a/.gitattributes +++ /dev/null @@ -1,66 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/lib/node_modules/** -linguist-vendored -linguist-generated - -# Configure directories which should *not* be included in GitHub language statistics: -/deps/** linguist-vendored -/dist/** linguist-generated -/workshops/** linguist-vendored - -benchmark/** linguist-vendored -docs/* linguist-documentation -etc/** linguist-vendored -examples/** linguist-documentation -scripts/** linguist-vendored -test/** linguist-vendored -tools/** linguist-vendored - -# Configure files which should *not* be included in GitHub language statistics: -Makefile linguist-vendored -*.mk linguist-vendored -*.jl linguist-vendored -*.py linguist-vendored -*.R linguist-vendored - -# Configure files which should be included in GitHub language statistics: -docs/types/*.d.ts -linguist-documentation diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index f4575e9..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,794 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA - uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 - with: - status: ${{ job.status }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -150,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -215,63 +212,63 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..c7caa31 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.2-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..0ee6204 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index edbf509..1527f54 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.3.0", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.3.0", - "@stdlib/math-base-assert-int32-is-odd": "^0.3.0", - "@stdlib/math-base-assert-is-composite": "^0.3.0", - "@stdlib/math-base-assert-is-coprime": "^0.2.1", - "@stdlib/math-base-assert-is-even": "^0.2.3", - "@stdlib/math-base-assert-is-finite": "^0.2.2", - "@stdlib/math-base-assert-is-finitef": "^0.2.2", - "@stdlib/math-base-assert-is-infinite": "^0.2.2", - "@stdlib/math-base-assert-is-infinitef": "^0.2.2", - "@stdlib/math-base-assert-is-integer": "^0.2.5", - "@stdlib/math-base-assert-is-nan": "^0.2.2", - "@stdlib/math-base-assert-is-nanf": "^0.2.2", - "@stdlib/math-base-assert-is-negative-finite": "^0.3.0", - "@stdlib/math-base-assert-is-negative-integer": "^0.3.0", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.2", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.3.0", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.3.0", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.2.1", - "@stdlib/math-base-assert-is-odd": "^0.3.0", - "@stdlib/math-base-assert-is-positive-finite": "^0.3.0", - "@stdlib/math-base-assert-is-positive-integer": "^0.3.0", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.2", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-prime": "^0.3.0", - "@stdlib/math-base-assert-is-probability": "^0.2.3", - "@stdlib/math-base-assert-is-safe-integer": "^0.3.0", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.0", - "@stdlib/utils-define-read-only-property": "^0.2.2", - "@stdlib/error-tools-fmtprodmsg": "^0.2.2" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.2", - "@stdlib/boolean-ctor": "^0.2.2", - "@stdlib/constants-float32-max": "^0.2.2", - "@stdlib/constants-float32-ninf": "^0.2.2", - "@stdlib/constants-float32-pinf": "^0.2.2", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.2", - "@stdlib/constants-float64-max": "^0.2.2", - "@stdlib/constants-float64-max-safe-integer": "^0.2.2", - "@stdlib/constants-float64-min-safe-integer": "^0.2.2", - "@stdlib/constants-float64-ninf": "^0.2.2", - "@stdlib/constants-float64-pinf": "^0.2.2", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.2", - "@stdlib/constants-int32-max": "^0.3.0", - "@stdlib/datasets-primes-100k": "^0.2.2", - "@stdlib/math-base-special-floor": "^0.2.3", - "@stdlib/math-base-special-gcd": "^0.3.0", - "@stdlib/math-base-special-log10": "^0.3.0", - "@stdlib/math-base-special-log2": "^0.3.0", - "@stdlib/math-base-special-pow": "^0.2.1", - "@stdlib/math-base-special-round": "^0.3.0", - "@stdlib/math-base-special-sqrt": "^0.2.2", - "@stdlib/math-base-special-trunc": "^0.2.2", - "@stdlib/number-ctor": "^0.2.2", - "@stdlib/number-float64-base-to-float32": "^0.2.2", - "@stdlib/number-float64-base-to-uint32": "^0.2.2", - "@stdlib/random-base-discrete-uniform": "^0.2.1", - "@stdlib/random-base-randu": "^0.2.1", - "@stdlib/utils-keys": "^0.2.2", - "@stdlib/utils-try-require": "^0.2.2", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.2" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..8b262d1 --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From c404276631e29b359f9bad7ed5ddfd2089bede70 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 28 Jul 2024 12:56:21 +0000 Subject: [PATCH 119/190] Update README.md for ESM bundle v0.3.0 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7b30286..f433392 100644 --- a/README.md +++ b/README.md @@ -42,13 +42,13 @@ limitations under the License. ## Usage ```javascript -import ns from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@esm/index.mjs'; +import ns from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@v0.3.0-esm/index.mjs'; ``` You can also import the following named exports from the package: ```javascript -import { isComposite, isCoprime, isEven, isEvenInt32, isFinite, isFinitef, isInfinite, isInfinitef, isInteger, isNegativeFinite, isNegativeInteger, isNegativeZero, isNegativeZerof, isNonNegativeFinite, isNonNegativeInteger, isNonPositiveFinite, isNonPositiveInteger, isOdd, isOddInt32, isPositiveFinite, isPositiveInteger, isPositiveZero, isPositiveZerof, isPow2Uint32, isPrime, isProbability, isSafeInteger, isnan, isnanf } from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@esm/index.mjs'; +import { isComposite, isCoprime, isEven, isEvenInt32, isFinite, isFinitef, isInfinite, isInfinitef, isInteger, isNegativeFinite, isNegativeInteger, isNegativeZero, isNegativeZerof, isNonNegativeFinite, isNonNegativeInteger, isNonPositiveFinite, isNonPositiveInteger, isOdd, isOddInt32, isPositiveFinite, isPositiveInteger, isPositiveZero, isPositiveZerof, isPow2Uint32, isPrime, isProbability, isSafeInteger, isnan, isnanf } from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@v0.3.0-esm/index.mjs'; ``` #### ns @@ -117,7 +117,7 @@ var o = ns; - - - - From 2c1d7de56994d631f3c7ce82ff14bfdba05085ec Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 1 Aug 2024 10:28:28 +0000 Subject: [PATCH 123/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 66 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 794 ---- .github/workflows/publish.yml | 252 -- .github/workflows/test.yml | 99 - .github/workflows/test_bundles.yml | 186 - .github/workflows/test_coverage.yml | 133 - .github/workflows/test_install.yml | 85 - .gitignore | 190 - .npmignore | 229 - .npmrc | 31 - CHANGELOG.md | 266 -- CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 --- README.md | 101 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 -- package.json | 111 +- stats.html | 4842 +++++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 40 files changed, 4899 insertions(+), 4105 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 60d743f..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 1c88e69..0000000 --- a/.gitattributes +++ /dev/null @@ -1,66 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/lib/node_modules/** -linguist-vendored -linguist-generated - -# Configure directories which should *not* be included in GitHub language statistics: -/deps/** linguist-vendored -/dist/** linguist-generated -/workshops/** linguist-vendored - -benchmark/** linguist-vendored -docs/* linguist-documentation -etc/** linguist-vendored -examples/** linguist-documentation -scripts/** linguist-vendored -test/** linguist-vendored -tools/** linguist-vendored - -# Configure files which should *not* be included in GitHub language statistics: -Makefile linguist-vendored -*.mk linguist-vendored -*.jl linguist-vendored -*.py linguist-vendored -*.R linguist-vendored - -# Configure files which should be included in GitHub language statistics: -docs/types/*.d.ts -linguist-documentation diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 1215fdc..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2024-08-01T04:14:03.748Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index f4575e9..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,794 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA - uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 - with: - status: ${{ job.status }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -150,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -215,63 +212,63 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..c7caa31 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.2-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..0ee6204 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index c923bab..1527f54 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.3.0", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.3.0", - "@stdlib/math-base-assert-int32-is-odd": "^0.3.0", - "@stdlib/math-base-assert-is-composite": "^0.3.0", - "@stdlib/math-base-assert-is-coprime": "^0.2.2", - "@stdlib/math-base-assert-is-even": "^0.2.3", - "@stdlib/math-base-assert-is-finite": "^0.2.2", - "@stdlib/math-base-assert-is-finitef": "^0.2.2", - "@stdlib/math-base-assert-is-infinite": "^0.2.2", - "@stdlib/math-base-assert-is-infinitef": "^0.2.2", - "@stdlib/math-base-assert-is-integer": "^0.2.5", - "@stdlib/math-base-assert-is-nan": "^0.2.2", - "@stdlib/math-base-assert-is-nanf": "^0.2.2", - "@stdlib/math-base-assert-is-negative-finite": "^0.3.0", - "@stdlib/math-base-assert-is-negative-integer": "^0.3.0", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.2", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.3.0", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.3.0", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.2.1", - "@stdlib/math-base-assert-is-odd": "^0.3.0", - "@stdlib/math-base-assert-is-positive-finite": "^0.3.0", - "@stdlib/math-base-assert-is-positive-integer": "^0.3.0", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.2", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-prime": "^0.3.0", - "@stdlib/math-base-assert-is-probability": "^0.2.3", - "@stdlib/math-base-assert-is-safe-integer": "^0.3.0", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.0", - "@stdlib/utils-define-read-only-property": "^0.2.2", - "@stdlib/error-tools-fmtprodmsg": "^0.2.2" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.2", - "@stdlib/boolean-ctor": "^0.2.2", - "@stdlib/constants-float32-max": "^0.2.2", - "@stdlib/constants-float32-ninf": "^0.2.2", - "@stdlib/constants-float32-pinf": "^0.2.2", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.2", - "@stdlib/constants-float64-max": "^0.2.2", - "@stdlib/constants-float64-max-safe-integer": "^0.2.2", - "@stdlib/constants-float64-min-safe-integer": "^0.2.2", - "@stdlib/constants-float64-ninf": "^0.2.2", - "@stdlib/constants-float64-pinf": "^0.2.2", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.2", - "@stdlib/constants-int32-max": "^0.3.0", - "@stdlib/datasets-primes-100k": "^0.2.2", - "@stdlib/math-base-special-floor": "^0.2.3", - "@stdlib/math-base-special-gcd": "^0.3.0", - "@stdlib/math-base-special-log10": "^0.3.0", - "@stdlib/math-base-special-log2": "^0.3.0", - "@stdlib/math-base-special-pow": "^0.3.0", - "@stdlib/math-base-special-round": "^0.3.0", - "@stdlib/math-base-special-sqrt": "^0.2.2", - "@stdlib/math-base-special-trunc": "^0.2.2", - "@stdlib/number-ctor": "^0.2.2", - "@stdlib/number-float64-base-to-float32": "^0.2.2", - "@stdlib/number-float64-base-to-uint32": "^0.2.2", - "@stdlib/random-base-discrete-uniform": "^0.2.1", - "@stdlib/random-base-randu": "^0.2.1", - "@stdlib/utils-keys": "^0.2.2", - "@stdlib/utils-try-require": "^0.2.2", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.2" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..8b262d1 --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From d2b18ff68cc97205b64d8a825ec14a27dcaa9642 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 3 Aug 2024 21:00:51 +0000 Subject: [PATCH 124/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index aaa5b86..c923bab 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.2.3", "@stdlib/math-base-assert-is-safe-integer": "^0.3.0", "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.0", - "@stdlib/utils-define-read-only-property": "^0.2.2" + "@stdlib/utils-define-read-only-property": "^0.2.2", + "@stdlib/error-tools-fmtprodmsg": "^0.2.2" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.2.2", @@ -147,4 +148,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From f0bb7de92466e93ad01d2fe6a6cc5645d27f5daf Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 4 Aug 2024 00:19:42 +0000 Subject: [PATCH 125/190] Remove files --- index.d.ts | 705 ------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4842 ------------------------------------------------- 4 files changed, 5552 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 52025ba..0000000 --- a/index.d.ts +++ /dev/null @@ -1,705 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index c7caa31..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.2-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index 0ee6204..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 8b262d1..0000000 --- a/stats.html +++ /dev/null @@ -1,4842 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From 22ee354ffc2de6351939a94e54dbcfeb2194d112 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 4 Aug 2024 00:20:15 +0000 Subject: [PATCH 126/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 66 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 794 ---- .github/workflows/publish.yml | 252 -- .github/workflows/test.yml | 99 - .github/workflows/test_bundles.yml | 186 - .github/workflows/test_coverage.yml | 133 - .github/workflows/test_install.yml | 85 - .gitignore | 190 - .npmignore | 229 - .npmrc | 31 - CHANGELOG.md | 2155 --------- CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 --- README.md | 101 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 -- package.json | 111 +- stats.html | 4842 +++++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 40 files changed, 4899 insertions(+), 5994 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 60d743f..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 1c88e69..0000000 --- a/.gitattributes +++ /dev/null @@ -1,66 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/lib/node_modules/** -linguist-vendored -linguist-generated - -# Configure directories which should *not* be included in GitHub language statistics: -/deps/** linguist-vendored -/dist/** linguist-generated -/workshops/** linguist-vendored - -benchmark/** linguist-vendored -docs/* linguist-documentation -etc/** linguist-vendored -examples/** linguist-documentation -scripts/** linguist-vendored -test/** linguist-vendored -tools/** linguist-vendored - -# Configure files which should *not* be included in GitHub language statistics: -Makefile linguist-vendored -*.mk linguist-vendored -*.jl linguist-vendored -*.py linguist-vendored -*.R linguist-vendored - -# Configure files which should be included in GitHub language statistics: -docs/types/*.d.ts -linguist-documentation diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 0a7bc2a..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2024-08-03T19:35:01.375Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index f4575e9..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,794 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA - uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 - with: - status: ${{ job.status }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -150,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -215,63 +212,63 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..c7caa31 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.2-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..0ee6204 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index c923bab..1527f54 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.3.0", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,89 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.3.0", - "@stdlib/math-base-assert-int32-is-odd": "^0.3.0", - "@stdlib/math-base-assert-is-composite": "^0.3.0", - "@stdlib/math-base-assert-is-coprime": "^0.2.2", - "@stdlib/math-base-assert-is-even": "^0.2.3", - "@stdlib/math-base-assert-is-finite": "^0.2.2", - "@stdlib/math-base-assert-is-finitef": "^0.2.2", - "@stdlib/math-base-assert-is-infinite": "^0.2.2", - "@stdlib/math-base-assert-is-infinitef": "^0.2.2", - "@stdlib/math-base-assert-is-integer": "^0.2.5", - "@stdlib/math-base-assert-is-nan": "^0.2.2", - "@stdlib/math-base-assert-is-nanf": "^0.2.2", - "@stdlib/math-base-assert-is-negative-finite": "^0.3.0", - "@stdlib/math-base-assert-is-negative-integer": "^0.3.0", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.2", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.3.0", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.3.0", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.2.1", - "@stdlib/math-base-assert-is-odd": "^0.3.0", - "@stdlib/math-base-assert-is-positive-finite": "^0.3.0", - "@stdlib/math-base-assert-is-positive-integer": "^0.3.0", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.2", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-prime": "^0.3.0", - "@stdlib/math-base-assert-is-probability": "^0.2.3", - "@stdlib/math-base-assert-is-safe-integer": "^0.3.0", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.0", - "@stdlib/utils-define-read-only-property": "^0.2.2", - "@stdlib/error-tools-fmtprodmsg": "^0.2.2" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.2", - "@stdlib/boolean-ctor": "^0.2.2", - "@stdlib/constants-float32-max": "^0.2.2", - "@stdlib/constants-float32-ninf": "^0.2.2", - "@stdlib/constants-float32-pinf": "^0.2.2", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.2", - "@stdlib/constants-float64-max": "^0.2.2", - "@stdlib/constants-float64-max-safe-integer": "^0.2.2", - "@stdlib/constants-float64-min-safe-integer": "^0.2.2", - "@stdlib/constants-float64-ninf": "^0.2.2", - "@stdlib/constants-float64-pinf": "^0.2.2", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.2", - "@stdlib/constants-int32-max": "^0.3.0", - "@stdlib/datasets-primes-100k": "^0.2.2", - "@stdlib/math-base-special-floor": "^0.2.3", - "@stdlib/math-base-special-gcd": "^0.3.0", - "@stdlib/math-base-special-log10": "^0.3.0", - "@stdlib/math-base-special-log2": "^0.3.0", - "@stdlib/math-base-special-pow": "^0.3.0", - "@stdlib/math-base-special-round": "^0.3.0", - "@stdlib/math-base-special-sqrt": "^0.2.2", - "@stdlib/math-base-special-trunc": "^0.2.2", - "@stdlib/number-ctor": "^0.2.2", - "@stdlib/number-float64-base-to-float32": "^0.2.2", - "@stdlib/number-float64-base-to-uint32": "^0.2.2", - "@stdlib/random-base-discrete-uniform": "^0.2.1", - "@stdlib/random-base-randu": "^0.2.1", - "@stdlib/utils-keys": "^0.2.2", - "@stdlib/utils-try-require": "^0.2.2", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.2" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -148,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..8b262d1 --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 36992fce7ae46111304ffcd68f4653d01dd77605 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 1 Sep 2024 06:05:54 +0000 Subject: [PATCH 127/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 933e753..5e62853 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.2.3", "@stdlib/math-base-assert-is-safe-integer": "^0.3.0", "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.0", - "@stdlib/utils-define-read-only-property": "^0.2.2" + "@stdlib/utils-define-read-only-property": "^0.2.2", + "@stdlib/error-tools-fmtprodmsg": "^0.2.2" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.2.2", @@ -149,4 +150,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From b7f643ed66c40cdc414dbff7cadfb0111ab12fc0 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 1 Sep 2024 10:18:40 +0000 Subject: [PATCH 128/190] Remove files --- index.d.ts | 705 ------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4842 ------------------------------------------------- 4 files changed, 5552 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 52025ba..0000000 --- a/index.d.ts +++ /dev/null @@ -1,705 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index c7caa31..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.2-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index 0ee6204..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 8b262d1..0000000 --- a/stats.html +++ /dev/null @@ -1,4842 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From aeb0c3e15ae991c4b8f0b91b3b6c12f761e39bf8 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 1 Sep 2024 10:19:14 +0000 Subject: [PATCH 129/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 66 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 794 ---- .github/workflows/publish.yml | 252 -- .github/workflows/test.yml | 99 - .github/workflows/test_bundles.yml | 186 - .github/workflows/test_coverage.yml | 133 - .github/workflows/test_install.yml | 85 - .gitignore | 190 - .npmignore | 229 - .npmrc | 31 - CHANGELOG.md | 1831 -------- CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 --- README.md | 101 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 -- package.json | 113 +- stats.html | 4842 +++++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 40 files changed, 4899 insertions(+), 5672 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 60d743f..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 1c88e69..0000000 --- a/.gitattributes +++ /dev/null @@ -1,66 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/lib/node_modules/** -linguist-vendored -linguist-generated - -# Configure directories which should *not* be included in GitHub language statistics: -/deps/** linguist-vendored -/dist/** linguist-generated -/workshops/** linguist-vendored - -benchmark/** linguist-vendored -docs/* linguist-documentation -etc/** linguist-vendored -examples/** linguist-documentation -scripts/** linguist-vendored -test/** linguist-vendored -tools/** linguist-vendored - -# Configure files which should *not* be included in GitHub language statistics: -Makefile linguist-vendored -*.mk linguist-vendored -*.jl linguist-vendored -*.py linguist-vendored -*.R linguist-vendored - -# Configure files which should be included in GitHub language statistics: -docs/types/*.d.ts -linguist-documentation diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index f1e06db..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2024-09-01T04:30:55.074Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index f4575e9..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,794 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA - uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 - with: - status: ${{ job.status }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -150,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -215,63 +212,63 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..c7caa31 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.2-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..0ee6204 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 5e62853..1527f54 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.3.0", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,91 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.3.0", - "@stdlib/math-base-assert-int32-is-odd": "^0.3.0", - "@stdlib/math-base-assert-is-composite": "^0.3.0", - "@stdlib/math-base-assert-is-coprime": "^0.2.2", - "@stdlib/math-base-assert-is-even": "^0.2.3", - "@stdlib/math-base-assert-is-finite": "^0.2.2", - "@stdlib/math-base-assert-is-finitef": "^0.2.2", - "@stdlib/math-base-assert-is-infinite": "^0.2.2", - "@stdlib/math-base-assert-is-infinitef": "^0.2.2", - "@stdlib/math-base-assert-is-integer": "^0.2.5", - "@stdlib/math-base-assert-is-nan": "^0.2.2", - "@stdlib/math-base-assert-is-nanf": "^0.2.2", - "@stdlib/math-base-assert-is-negative-finite": "^0.3.0", - "@stdlib/math-base-assert-is-negative-integer": "^0.3.0", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.2", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.3.0", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.3.0", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.2.1", - "@stdlib/math-base-assert-is-odd": "^0.3.0", - "@stdlib/math-base-assert-is-positive-finite": "^0.3.0", - "@stdlib/math-base-assert-is-positive-integer": "^0.3.0", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.2", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-prime": "^0.3.0", - "@stdlib/math-base-assert-is-probability": "^0.2.3", - "@stdlib/math-base-assert-is-safe-integer": "^0.3.0", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.0", - "@stdlib/utils-define-read-only-property": "^0.2.2", - "@stdlib/error-tools-fmtprodmsg": "^0.2.2" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.2", - "@stdlib/boolean-ctor": "^0.2.2", - "@stdlib/constants-float32-max": "^0.2.2", - "@stdlib/constants-float32-ninf": "^0.2.2", - "@stdlib/constants-float32-pinf": "^0.2.2", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.2", - "@stdlib/constants-float64-max": "^0.2.2", - "@stdlib/constants-float64-max-safe-integer": "^0.2.2", - "@stdlib/constants-float64-min-safe-integer": "^0.2.2", - "@stdlib/constants-float64-ninf": "^0.2.2", - "@stdlib/constants-float64-pinf": "^0.2.2", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.2", - "@stdlib/constants-int32-max": "^0.3.0", - "@stdlib/datasets-primes-100k": "^0.2.2", - "@stdlib/math-base-special-floor": "^0.2.3", - "@stdlib/math-base-special-floorf": "^0.2.2", - "@stdlib/math-base-special-gcd": "^0.3.0", - "@stdlib/math-base-special-log10": "^0.3.0", - "@stdlib/math-base-special-log2": "^0.3.0", - "@stdlib/math-base-special-pow": "^0.3.0", - "@stdlib/math-base-special-round": "^0.3.0", - "@stdlib/math-base-special-sqrt": "^0.2.2", - "@stdlib/math-base-special-trunc": "^0.2.2", - "@stdlib/math-base-special-truncf": "^0.2.2", - "@stdlib/number-ctor": "^0.2.2", - "@stdlib/number-float64-base-to-float32": "^0.2.2", - "@stdlib/number-float64-base-to-uint32": "^0.2.2", - "@stdlib/random-base-discrete-uniform": "^0.2.1", - "@stdlib/random-base-randu": "^0.2.1", - "@stdlib/utils-keys": "^0.2.2", - "@stdlib/utils-try-require": "^0.2.2", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.2" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -150,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..8b262d1 --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 7411c57167bdb2cceaf1a4f60752b84ecdf742f4 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Tue, 1 Oct 2024 06:20:01 +0000 Subject: [PATCH 130/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 28baf4f..344a4f1 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.2.3", "@stdlib/math-base-assert-is-safe-integer": "^0.3.0", "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.0", - "@stdlib/utils-define-read-only-property": "^0.2.2" + "@stdlib/utils-define-read-only-property": "^0.2.2", + "@stdlib/error-tools-fmtprodmsg": "^0.2.2" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.2.2", @@ -150,4 +151,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From 241127352e500ff5baa99deb1c4910b154a905da Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Tue, 1 Oct 2024 10:47:41 +0000 Subject: [PATCH 131/190] Remove files --- index.d.ts | 705 ------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4842 ------------------------------------------------- 4 files changed, 5552 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 52025ba..0000000 --- a/index.d.ts +++ /dev/null @@ -1,705 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index c7caa31..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.2-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index 0ee6204..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 8b262d1..0000000 --- a/stats.html +++ /dev/null @@ -1,4842 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From fdf5e760f625f58545bb0177f760e52ad18a6bb8 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Tue, 1 Oct 2024 10:48:09 +0000 Subject: [PATCH 132/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 66 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 794 ---- .github/workflows/publish.yml | 252 -- .github/workflows/test.yml | 99 - .github/workflows/test_bundles.yml | 186 - .github/workflows/test_coverage.yml | 133 - .github/workflows/test_install.yml | 85 - .gitignore | 190 - .npmignore | 229 - .npmrc | 31 - CHANGELOG.md | 1856 -------- CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 --- README.md | 101 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 -- package.json | 114 +- stats.html | 4842 +++++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 40 files changed, 4899 insertions(+), 5698 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 60d743f..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 1c88e69..0000000 --- a/.gitattributes +++ /dev/null @@ -1,66 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/lib/node_modules/** -linguist-vendored -linguist-generated - -# Configure directories which should *not* be included in GitHub language statistics: -/deps/** linguist-vendored -/dist/** linguist-generated -/workshops/** linguist-vendored - -benchmark/** linguist-vendored -docs/* linguist-documentation -etc/** linguist-vendored -examples/** linguist-documentation -scripts/** linguist-vendored -test/** linguist-vendored -tools/** linguist-vendored - -# Configure files which should *not* be included in GitHub language statistics: -Makefile linguist-vendored -*.mk linguist-vendored -*.jl linguist-vendored -*.py linguist-vendored -*.R linguist-vendored - -# Configure files which should be included in GitHub language statistics: -docs/types/*.d.ts -linguist-documentation diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 7f63d84..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2024-10-01T04:42:18.956Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index f4575e9..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,794 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA - uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 - with: - status: ${{ job.status }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -150,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -215,63 +212,63 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..c7caa31 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.2-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..0ee6204 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 344a4f1..1527f54 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.3.0", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,92 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.3.0", - "@stdlib/math-base-assert-int32-is-odd": "^0.3.0", - "@stdlib/math-base-assert-is-composite": "^0.3.0", - "@stdlib/math-base-assert-is-coprime": "^0.2.2", - "@stdlib/math-base-assert-is-even": "^0.2.3", - "@stdlib/math-base-assert-is-finite": "^0.2.2", - "@stdlib/math-base-assert-is-finitef": "^0.2.2", - "@stdlib/math-base-assert-is-infinite": "^0.2.2", - "@stdlib/math-base-assert-is-infinitef": "^0.2.2", - "@stdlib/math-base-assert-is-integer": "^0.2.5", - "@stdlib/math-base-assert-is-nan": "^0.2.2", - "@stdlib/math-base-assert-is-nanf": "^0.2.2", - "@stdlib/math-base-assert-is-negative-finite": "^0.3.0", - "@stdlib/math-base-assert-is-negative-integer": "^0.3.0", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.2", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.3.0", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.3.0", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.2.1", - "@stdlib/math-base-assert-is-odd": "^0.3.0", - "@stdlib/math-base-assert-is-positive-finite": "^0.3.0", - "@stdlib/math-base-assert-is-positive-integer": "^0.3.0", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.2", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-prime": "^0.3.0", - "@stdlib/math-base-assert-is-probability": "^0.2.3", - "@stdlib/math-base-assert-is-safe-integer": "^0.3.0", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.0", - "@stdlib/utils-define-read-only-property": "^0.2.2", - "@stdlib/error-tools-fmtprodmsg": "^0.2.2" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.2", - "@stdlib/boolean-ctor": "^0.2.2", - "@stdlib/constants-float32-max": "^0.2.2", - "@stdlib/constants-float32-ninf": "^0.2.2", - "@stdlib/constants-float32-pinf": "^0.2.2", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.2", - "@stdlib/constants-float64-max": "^0.2.2", - "@stdlib/constants-float64-max-safe-integer": "^0.2.2", - "@stdlib/constants-float64-min-safe-integer": "^0.2.2", - "@stdlib/constants-float64-ninf": "^0.2.2", - "@stdlib/constants-float64-pinf": "^0.2.2", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.2", - "@stdlib/constants-int32-max": "^0.3.0", - "@stdlib/datasets-primes-100k": "^0.2.2", - "@stdlib/math-base-special-floor": "^0.2.3", - "@stdlib/math-base-special-floorf": "^0.2.2", - "@stdlib/math-base-special-gcd": "^0.3.0", - "@stdlib/math-base-special-log10": "^0.3.0", - "@stdlib/math-base-special-log2": "^0.3.0", - "@stdlib/math-base-special-pow": "^0.3.0", - "@stdlib/math-base-special-round": "^0.3.0", - "@stdlib/math-base-special-sqrt": "^0.2.2", - "@stdlib/math-base-special-trunc": "^0.2.2", - "@stdlib/math-base-special-truncf": "^0.2.2", - "@stdlib/number-ctor": "^0.2.2", - "@stdlib/number-float64-base-to-float32": "^0.2.2", - "@stdlib/number-float64-base-to-uint32": "^0.2.2", - "@stdlib/random-array-discrete-uniform": "^0.2.1", - "@stdlib/random-base-discrete-uniform": "^0.2.1", - "@stdlib/random-base-randu": "^0.2.1", - "@stdlib/utils-keys": "^0.2.2", - "@stdlib/utils-try-require": "^0.2.2", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.2" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -151,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..8b262d1 --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From fe099356feac20636d3ae8e98709da8c44ae4938 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 1 Nov 2024 06:15:00 +0000 Subject: [PATCH 133/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 28baf4f..344a4f1 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.2.3", "@stdlib/math-base-assert-is-safe-integer": "^0.3.0", "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.0", - "@stdlib/utils-define-read-only-property": "^0.2.2" + "@stdlib/utils-define-read-only-property": "^0.2.2", + "@stdlib/error-tools-fmtprodmsg": "^0.2.2" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.2.2", @@ -150,4 +151,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From 49a037f3ad3b7b67fe8261c663afa657f6dcac25 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 1 Nov 2024 10:04:40 +0000 Subject: [PATCH 134/190] Remove files --- index.d.ts | 705 ------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4842 ------------------------------------------------- 4 files changed, 5552 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 52025ba..0000000 --- a/index.d.ts +++ /dev/null @@ -1,705 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index c7caa31..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.2-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index 0ee6204..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 8b262d1..0000000 --- a/stats.html +++ /dev/null @@ -1,4842 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From a0d33bf837bb869f29a5e30741429cda9ca6752e Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 1 Nov 2024 10:05:12 +0000 Subject: [PATCH 135/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 66 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 794 ---- .github/workflows/publish.yml | 252 -- .github/workflows/test.yml | 99 - .github/workflows/test_bundles.yml | 186 - .github/workflows/test_coverage.yml | 133 - .github/workflows/test_install.yml | 85 - .gitignore | 190 - .npmignore | 229 - .npmrc | 31 - CHANGELOG.md | 1856 -------- CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 --- README.md | 101 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 -- package.json | 114 +- stats.html | 4842 +++++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 40 files changed, 4899 insertions(+), 5698 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 60d743f..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 1c88e69..0000000 --- a/.gitattributes +++ /dev/null @@ -1,66 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/lib/node_modules/** -linguist-vendored -linguist-generated - -# Configure directories which should *not* be included in GitHub language statistics: -/deps/** linguist-vendored -/dist/** linguist-generated -/workshops/** linguist-vendored - -benchmark/** linguist-vendored -docs/* linguist-documentation -etc/** linguist-vendored -examples/** linguist-documentation -scripts/** linguist-vendored -test/** linguist-vendored -tools/** linguist-vendored - -# Configure files which should *not* be included in GitHub language statistics: -Makefile linguist-vendored -*.mk linguist-vendored -*.jl linguist-vendored -*.py linguist-vendored -*.R linguist-vendored - -# Configure files which should be included in GitHub language statistics: -docs/types/*.d.ts -linguist-documentation diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 3443100..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2024-11-01T04:46:13.817Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index f4575e9..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,794 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA - uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 - with: - status: ${{ job.status }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -150,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -215,63 +212,63 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..c7caa31 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.2-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..0ee6204 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 344a4f1..1527f54 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.3.0", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,92 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.3.0", - "@stdlib/math-base-assert-int32-is-odd": "^0.3.0", - "@stdlib/math-base-assert-is-composite": "^0.3.0", - "@stdlib/math-base-assert-is-coprime": "^0.2.2", - "@stdlib/math-base-assert-is-even": "^0.2.3", - "@stdlib/math-base-assert-is-finite": "^0.2.2", - "@stdlib/math-base-assert-is-finitef": "^0.2.2", - "@stdlib/math-base-assert-is-infinite": "^0.2.2", - "@stdlib/math-base-assert-is-infinitef": "^0.2.2", - "@stdlib/math-base-assert-is-integer": "^0.2.5", - "@stdlib/math-base-assert-is-nan": "^0.2.2", - "@stdlib/math-base-assert-is-nanf": "^0.2.2", - "@stdlib/math-base-assert-is-negative-finite": "^0.3.0", - "@stdlib/math-base-assert-is-negative-integer": "^0.3.0", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.2", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.3.0", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.3.0", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.2.1", - "@stdlib/math-base-assert-is-odd": "^0.3.0", - "@stdlib/math-base-assert-is-positive-finite": "^0.3.0", - "@stdlib/math-base-assert-is-positive-integer": "^0.3.0", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.2", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-prime": "^0.3.0", - "@stdlib/math-base-assert-is-probability": "^0.2.3", - "@stdlib/math-base-assert-is-safe-integer": "^0.3.0", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.0", - "@stdlib/utils-define-read-only-property": "^0.2.2", - "@stdlib/error-tools-fmtprodmsg": "^0.2.2" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.2", - "@stdlib/boolean-ctor": "^0.2.2", - "@stdlib/constants-float32-max": "^0.2.2", - "@stdlib/constants-float32-ninf": "^0.2.2", - "@stdlib/constants-float32-pinf": "^0.2.2", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.2", - "@stdlib/constants-float64-max": "^0.2.2", - "@stdlib/constants-float64-max-safe-integer": "^0.2.2", - "@stdlib/constants-float64-min-safe-integer": "^0.2.2", - "@stdlib/constants-float64-ninf": "^0.2.2", - "@stdlib/constants-float64-pinf": "^0.2.2", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.2", - "@stdlib/constants-int32-max": "^0.3.0", - "@stdlib/datasets-primes-100k": "^0.2.2", - "@stdlib/math-base-special-floor": "^0.2.3", - "@stdlib/math-base-special-floorf": "^0.2.2", - "@stdlib/math-base-special-gcd": "^0.3.0", - "@stdlib/math-base-special-log10": "^0.3.0", - "@stdlib/math-base-special-log2": "^0.3.0", - "@stdlib/math-base-special-pow": "^0.3.0", - "@stdlib/math-base-special-round": "^0.3.0", - "@stdlib/math-base-special-sqrt": "^0.2.2", - "@stdlib/math-base-special-trunc": "^0.2.2", - "@stdlib/math-base-special-truncf": "^0.2.2", - "@stdlib/number-ctor": "^0.2.2", - "@stdlib/number-float64-base-to-float32": "^0.2.2", - "@stdlib/number-float64-base-to-uint32": "^0.2.2", - "@stdlib/random-array-discrete-uniform": "^0.2.1", - "@stdlib/random-base-discrete-uniform": "^0.2.1", - "@stdlib/random-base-randu": "^0.2.1", - "@stdlib/utils-keys": "^0.2.2", - "@stdlib/utils-try-require": "^0.2.2", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.2" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -151,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..8b262d1 --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 94d4d35cf9f5d5c3230eb608152a04abfbe3b8e1 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 1 Dec 2024 06:31:05 +0000 Subject: [PATCH 136/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 25e8111..c5dc3a4 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.2.3", "@stdlib/math-base-assert-is-safe-integer": "^0.3.0", "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.0", - "@stdlib/utils-define-read-only-property": "^0.2.2" + "@stdlib/utils-define-read-only-property": "^0.2.2", + "@stdlib/error-tools-fmtprodmsg": "^0.2.2" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.2.2", @@ -152,4 +153,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From 1fe07d2888df0b1fb8878521a0cd61e9d18e3510 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 1 Dec 2024 10:28:58 +0000 Subject: [PATCH 137/190] Remove files --- index.d.ts | 705 ------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4842 ------------------------------------------------- 4 files changed, 5552 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 52025ba..0000000 --- a/index.d.ts +++ /dev/null @@ -1,705 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index c7caa31..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.2-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index 0ee6204..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 8b262d1..0000000 --- a/stats.html +++ /dev/null @@ -1,4842 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From 077a6286590ab68525bb3a4dccf396eadacc187c Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 1 Dec 2024 10:29:31 +0000 Subject: [PATCH 138/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 66 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 794 --- .github/workflows/publish.yml | 252 - .github/workflows/test.yml | 99 - .github/workflows/test_bundles.yml | 186 - .github/workflows/test_coverage.yml | 133 - .github/workflows/test_install.yml | 85 - .github/workflows/test_published_package.yml | 105 - .gitignore | 190 - .npmignore | 229 - .npmrc | 31 - CHANGELOG.md | 1884 ------- CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 101 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 -- package.json | 116 +- stats.html | 4842 ++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 41 files changed, 4899 insertions(+), 5833 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .github/workflows/test_published_package.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 60d743f..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = false - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 1c88e69..0000000 --- a/.gitattributes +++ /dev/null @@ -1,66 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/lib/node_modules/** -linguist-vendored -linguist-generated - -# Configure directories which should *not* be included in GitHub language statistics: -/deps/** linguist-vendored -/dist/** linguist-generated -/workshops/** linguist-vendored - -benchmark/** linguist-vendored -docs/* linguist-documentation -etc/** linguist-vendored -examples/** linguist-documentation -scripts/** linguist-vendored -test/** linguist-vendored -tools/** linguist-vendored - -# Configure files which should *not* be included in GitHub language statistics: -Makefile linguist-vendored -*.mk linguist-vendored -*.jl linguist-vendored -*.py linguist-vendored -*.R linguist-vendored - -# Configure files which should be included in GitHub language statistics: -docs/types/*.d.ts -linguist-documentation diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 6a1ba81..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2024-12-01T04:52:54.061Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index f4575e9..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,794 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA - uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 - with: - status: ${{ job.status }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -150,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -215,63 +212,63 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..c7caa31 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.2-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..0ee6204 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index c5dc3a4..1527f54 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.3.0", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,94 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.3.0", - "@stdlib/math-base-assert-int32-is-odd": "^0.3.0", - "@stdlib/math-base-assert-is-composite": "^0.3.0", - "@stdlib/math-base-assert-is-coprime": "^0.2.2", - "@stdlib/math-base-assert-is-even": "^0.2.3", - "@stdlib/math-base-assert-is-finite": "^0.2.2", - "@stdlib/math-base-assert-is-finitef": "^0.2.2", - "@stdlib/math-base-assert-is-infinite": "^0.2.2", - "@stdlib/math-base-assert-is-infinitef": "^0.2.2", - "@stdlib/math-base-assert-is-integer": "^0.2.5", - "@stdlib/math-base-assert-is-nan": "^0.2.2", - "@stdlib/math-base-assert-is-nanf": "^0.2.2", - "@stdlib/math-base-assert-is-negative-finite": "^0.3.0", - "@stdlib/math-base-assert-is-negative-integer": "^0.3.0", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.2", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.3.0", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.3.0", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.2.1", - "@stdlib/math-base-assert-is-odd": "^0.3.0", - "@stdlib/math-base-assert-is-positive-finite": "^0.3.0", - "@stdlib/math-base-assert-is-positive-integer": "^0.3.0", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.2", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-prime": "^0.3.0", - "@stdlib/math-base-assert-is-probability": "^0.2.3", - "@stdlib/math-base-assert-is-safe-integer": "^0.3.0", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.0", - "@stdlib/utils-define-read-only-property": "^0.2.2", - "@stdlib/error-tools-fmtprodmsg": "^0.2.2" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.2", - "@stdlib/boolean-ctor": "^0.2.2", - "@stdlib/constants-float32-max": "^0.2.2", - "@stdlib/constants-float32-ninf": "^0.2.2", - "@stdlib/constants-float32-pinf": "^0.2.2", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.2", - "@stdlib/constants-float64-max": "^0.2.2", - "@stdlib/constants-float64-max-safe-integer": "^0.2.2", - "@stdlib/constants-float64-min-safe-integer": "^0.2.2", - "@stdlib/constants-float64-ninf": "^0.2.2", - "@stdlib/constants-float64-pinf": "^0.2.2", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.2", - "@stdlib/constants-int32-max": "^0.3.0", - "@stdlib/datasets-primes-100k": "^0.2.2", - "@stdlib/math-base-assert-is-integerf": "github:stdlib-js/math-base-assert-is-integerf#main", - "@stdlib/math-base-special-floor": "^0.2.3", - "@stdlib/math-base-special-floorf": "^0.2.2", - "@stdlib/math-base-special-gcd": "^0.3.0", - "@stdlib/math-base-special-log10": "^0.3.0", - "@stdlib/math-base-special-log2": "^0.3.0", - "@stdlib/math-base-special-pow": "^0.3.0", - "@stdlib/math-base-special-round": "^0.3.0", - "@stdlib/math-base-special-roundf": "github:stdlib-js/math-base-special-roundf#main", - "@stdlib/math-base-special-sqrt": "^0.2.2", - "@stdlib/math-base-special-trunc": "^0.2.2", - "@stdlib/math-base-special-truncf": "^0.2.2", - "@stdlib/number-ctor": "^0.2.2", - "@stdlib/number-float64-base-to-float32": "^0.2.2", - "@stdlib/number-float64-base-to-uint32": "^0.2.2", - "@stdlib/random-array-discrete-uniform": "^0.2.1", - "@stdlib/random-base-discrete-uniform": "^0.2.1", - "@stdlib/random-base-randu": "^0.2.1", - "@stdlib/utils-keys": "^0.2.2", - "@stdlib/utils-try-require": "^0.2.2", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.2" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -153,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..8b262d1 --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 6ee0abe27da20d45e205bfa0a348c786a1fc1078 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 23 Dec 2024 02:16:41 +0000 Subject: [PATCH 139/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e1f990e..2cff56d 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.2.3", "@stdlib/math-base-assert-is-safe-integer": "^0.3.0", "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.0", - "@stdlib/utils-define-read-only-property": "^0.2.2" + "@stdlib/utils-define-read-only-property": "^0.2.2", + "@stdlib/error-tools-fmtprodmsg": "^0.2.2" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.2.2", @@ -153,4 +154,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From 8aeeb4b198659d43155577db412314fd15525dfc Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 23 Dec 2024 02:45:31 +0000 Subject: [PATCH 140/190] Remove files --- index.d.ts | 705 ------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4842 ------------------------------------------------- 4 files changed, 5552 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 52025ba..0000000 --- a/index.d.ts +++ /dev/null @@ -1,705 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index c7caa31..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.2-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index 0ee6204..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 8b262d1..0000000 --- a/stats.html +++ /dev/null @@ -1,4842 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From 9368b56386876b8eac75fb71a1087487bb3ec2f7 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 23 Dec 2024 02:46:12 +0000 Subject: [PATCH 141/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 66 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 794 --- .github/workflows/publish.yml | 252 - .github/workflows/test.yml | 99 - .github/workflows/test_bundles.yml | 186 - .github/workflows/test_coverage.yml | 133 - .github/workflows/test_install.yml | 85 - .github/workflows/test_published_package.yml | 105 - .gitignore | 190 - .npmignore | 229 - .npmrc | 31 - CHANGELOG.md | 1916 ------- CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 101 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 -- package.json | 117 +- stats.html | 4842 ++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 41 files changed, 4899 insertions(+), 5866 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .github/workflows/test_published_package.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0779e8a..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim. - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 1c88e69..0000000 --- a/.gitattributes +++ /dev/null @@ -1,66 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/lib/node_modules/** -linguist-vendored -linguist-generated - -# Configure directories which should *not* be included in GitHub language statistics: -/deps/** linguist-vendored -/dist/** linguist-generated -/workshops/** linguist-vendored - -benchmark/** linguist-vendored -docs/* linguist-documentation -etc/** linguist-vendored -examples/** linguist-documentation -scripts/** linguist-vendored -test/** linguist-vendored -tools/** linguist-vendored - -# Configure files which should *not* be included in GitHub language statistics: -Makefile linguist-vendored -*.mk linguist-vendored -*.jl linguist-vendored -*.py linguist-vendored -*.R linguist-vendored - -# Configure files which should be included in GitHub language statistics: -docs/types/*.d.ts -linguist-documentation diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index eb4fceb..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2024-12-23T02:06:49.547Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index f4575e9..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,794 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA - uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 - with: - status: ${{ job.status }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -150,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -215,63 +212,63 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..c7caa31 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.2-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..0ee6204 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 2cff56d..1527f54 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.3.0", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,95 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.3.0", - "@stdlib/math-base-assert-int32-is-odd": "^0.3.0", - "@stdlib/math-base-assert-is-composite": "^0.3.0", - "@stdlib/math-base-assert-is-coprime": "^0.2.2", - "@stdlib/math-base-assert-is-even": "^0.2.3", - "@stdlib/math-base-assert-is-finite": "^0.2.2", - "@stdlib/math-base-assert-is-finitef": "^0.2.2", - "@stdlib/math-base-assert-is-infinite": "^0.2.2", - "@stdlib/math-base-assert-is-infinitef": "^0.2.2", - "@stdlib/math-base-assert-is-integer": "^0.2.5", - "@stdlib/math-base-assert-is-nan": "^0.2.2", - "@stdlib/math-base-assert-is-nanf": "^0.2.2", - "@stdlib/math-base-assert-is-negative-finite": "^0.3.0", - "@stdlib/math-base-assert-is-negative-integer": "^0.3.0", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.2", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.3.0", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.3.0", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.2.1", - "@stdlib/math-base-assert-is-odd": "^0.3.0", - "@stdlib/math-base-assert-is-positive-finite": "^0.3.0", - "@stdlib/math-base-assert-is-positive-integer": "^0.3.0", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.2", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-prime": "^0.3.0", - "@stdlib/math-base-assert-is-probability": "^0.2.3", - "@stdlib/math-base-assert-is-safe-integer": "^0.3.0", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.0", - "@stdlib/utils-define-read-only-property": "^0.2.2", - "@stdlib/error-tools-fmtprodmsg": "^0.2.2" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.2", - "@stdlib/boolean-ctor": "^0.2.2", - "@stdlib/constants-float32-max": "^0.2.2", - "@stdlib/constants-float32-ninf": "^0.2.2", - "@stdlib/constants-float32-pinf": "^0.2.2", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.2", - "@stdlib/constants-float64-max": "^0.2.2", - "@stdlib/constants-float64-max-safe-integer": "^0.2.2", - "@stdlib/constants-float64-min-safe-integer": "^0.2.2", - "@stdlib/constants-float64-ninf": "^0.2.2", - "@stdlib/constants-float64-pinf": "^0.2.2", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.2", - "@stdlib/constants-int32-max": "^0.3.0", - "@stdlib/datasets-primes-100k": "^0.2.2", - "@stdlib/math-base-assert-is-evenf": "github:stdlib-js/math-base-assert-is-evenf#main", - "@stdlib/math-base-assert-is-integerf": "github:stdlib-js/math-base-assert-is-integerf#main", - "@stdlib/math-base-special-floor": "^0.2.3", - "@stdlib/math-base-special-floorf": "^0.2.2", - "@stdlib/math-base-special-gcd": "^0.3.0", - "@stdlib/math-base-special-log10": "^0.3.0", - "@stdlib/math-base-special-log2": "^0.3.0", - "@stdlib/math-base-special-pow": "^0.3.0", - "@stdlib/math-base-special-round": "^0.3.0", - "@stdlib/math-base-special-roundf": "github:stdlib-js/math-base-special-roundf#main", - "@stdlib/math-base-special-sqrt": "^0.2.2", - "@stdlib/math-base-special-trunc": "^0.2.2", - "@stdlib/math-base-special-truncf": "^0.2.2", - "@stdlib/number-ctor": "^0.2.2", - "@stdlib/number-float64-base-to-float32": "^0.2.2", - "@stdlib/number-float64-base-to-uint32": "^0.2.2", - "@stdlib/random-array-discrete-uniform": "^0.2.1", - "@stdlib/random-base-discrete-uniform": "^0.2.1", - "@stdlib/random-base-randu": "^0.2.1", - "@stdlib/utils-keys": "^0.2.2", - "@stdlib/utils-try-require": "^0.2.2", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.2" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -154,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..8b262d1 --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 65d47ff7c3c7dc103afa681afa71adbdb8d48e15 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 30 Dec 2024 02:49:47 +0000 Subject: [PATCH 142/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e1f990e..2cff56d 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.2.3", "@stdlib/math-base-assert-is-safe-integer": "^0.3.0", "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.0", - "@stdlib/utils-define-read-only-property": "^0.2.2" + "@stdlib/utils-define-read-only-property": "^0.2.2", + "@stdlib/error-tools-fmtprodmsg": "^0.2.2" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.2.2", @@ -153,4 +154,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From b7f2d68a1c76d1e27b86d39760962132f394a1de Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 30 Dec 2024 03:51:34 +0000 Subject: [PATCH 143/190] Remove files --- index.d.ts | 705 ------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4842 ------------------------------------------------- 4 files changed, 5552 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 52025ba..0000000 --- a/index.d.ts +++ /dev/null @@ -1,705 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index c7caa31..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.2-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index 0ee6204..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 8b262d1..0000000 --- a/stats.html +++ /dev/null @@ -1,4842 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From 3d3f8a049c64ef94b0384cf3cdcdbf6f073488ec Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 30 Dec 2024 03:52:09 +0000 Subject: [PATCH 144/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 66 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 794 --- .github/workflows/publish.yml | 252 - .github/workflows/test.yml | 99 - .github/workflows/test_bundles.yml | 186 - .github/workflows/test_coverage.yml | 133 - .github/workflows/test_install.yml | 85 - .github/workflows/test_published_package.yml | 105 - .gitignore | 190 - .npmignore | 229 - .npmrc | 31 - CHANGELOG.md | 1920 ------- CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 101 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 -- package.json | 117 +- stats.html | 4842 ++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 41 files changed, 4899 insertions(+), 5870 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .github/workflows/test_published_package.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0779e8a..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim. - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 1c88e69..0000000 --- a/.gitattributes +++ /dev/null @@ -1,66 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/lib/node_modules/** -linguist-vendored -linguist-generated - -# Configure directories which should *not* be included in GitHub language statistics: -/deps/** linguist-vendored -/dist/** linguist-generated -/workshops/** linguist-vendored - -benchmark/** linguist-vendored -docs/* linguist-documentation -etc/** linguist-vendored -examples/** linguist-documentation -scripts/** linguist-vendored -test/** linguist-vendored -tools/** linguist-vendored - -# Configure files which should *not* be included in GitHub language statistics: -Makefile linguist-vendored -*.mk linguist-vendored -*.jl linguist-vendored -*.py linguist-vendored -*.R linguist-vendored - -# Configure files which should be included in GitHub language statistics: -docs/types/*.d.ts -linguist-documentation diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index f212b5c..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2024-12-30T02:33:19.036Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index f4575e9..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,794 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA - uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 - with: - status: ${{ job.status }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -150,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -215,63 +212,63 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..c7caa31 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.2-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..0ee6204 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 2cff56d..1527f54 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.3.0", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,95 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.3.0", - "@stdlib/math-base-assert-int32-is-odd": "^0.3.0", - "@stdlib/math-base-assert-is-composite": "^0.3.0", - "@stdlib/math-base-assert-is-coprime": "^0.2.2", - "@stdlib/math-base-assert-is-even": "^0.2.3", - "@stdlib/math-base-assert-is-finite": "^0.2.2", - "@stdlib/math-base-assert-is-finitef": "^0.2.2", - "@stdlib/math-base-assert-is-infinite": "^0.2.2", - "@stdlib/math-base-assert-is-infinitef": "^0.2.2", - "@stdlib/math-base-assert-is-integer": "^0.2.5", - "@stdlib/math-base-assert-is-nan": "^0.2.2", - "@stdlib/math-base-assert-is-nanf": "^0.2.2", - "@stdlib/math-base-assert-is-negative-finite": "^0.3.0", - "@stdlib/math-base-assert-is-negative-integer": "^0.3.0", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.2", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.3.0", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.3.0", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.2.1", - "@stdlib/math-base-assert-is-odd": "^0.3.0", - "@stdlib/math-base-assert-is-positive-finite": "^0.3.0", - "@stdlib/math-base-assert-is-positive-integer": "^0.3.0", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.2", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-prime": "^0.3.0", - "@stdlib/math-base-assert-is-probability": "^0.2.3", - "@stdlib/math-base-assert-is-safe-integer": "^0.3.0", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.0", - "@stdlib/utils-define-read-only-property": "^0.2.2", - "@stdlib/error-tools-fmtprodmsg": "^0.2.2" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.2", - "@stdlib/boolean-ctor": "^0.2.2", - "@stdlib/constants-float32-max": "^0.2.2", - "@stdlib/constants-float32-ninf": "^0.2.2", - "@stdlib/constants-float32-pinf": "^0.2.2", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.2", - "@stdlib/constants-float64-max": "^0.2.2", - "@stdlib/constants-float64-max-safe-integer": "^0.2.2", - "@stdlib/constants-float64-min-safe-integer": "^0.2.2", - "@stdlib/constants-float64-ninf": "^0.2.2", - "@stdlib/constants-float64-pinf": "^0.2.2", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.2", - "@stdlib/constants-int32-max": "^0.3.0", - "@stdlib/datasets-primes-100k": "^0.2.2", - "@stdlib/math-base-assert-is-evenf": "github:stdlib-js/math-base-assert-is-evenf#main", - "@stdlib/math-base-assert-is-integerf": "github:stdlib-js/math-base-assert-is-integerf#main", - "@stdlib/math-base-special-floor": "^0.2.3", - "@stdlib/math-base-special-floorf": "^0.2.2", - "@stdlib/math-base-special-gcd": "^0.3.0", - "@stdlib/math-base-special-log10": "^0.3.0", - "@stdlib/math-base-special-log2": "^0.3.0", - "@stdlib/math-base-special-pow": "^0.3.0", - "@stdlib/math-base-special-round": "^0.3.0", - "@stdlib/math-base-special-roundf": "github:stdlib-js/math-base-special-roundf#main", - "@stdlib/math-base-special-sqrt": "^0.2.2", - "@stdlib/math-base-special-trunc": "^0.2.2", - "@stdlib/math-base-special-truncf": "^0.2.2", - "@stdlib/number-ctor": "^0.2.2", - "@stdlib/number-float64-base-to-float32": "^0.2.2", - "@stdlib/number-float64-base-to-uint32": "^0.2.2", - "@stdlib/random-array-discrete-uniform": "^0.2.1", - "@stdlib/random-base-discrete-uniform": "^0.2.1", - "@stdlib/random-base-randu": "^0.2.1", - "@stdlib/utils-keys": "^0.2.2", - "@stdlib/utils-try-require": "^0.2.2", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.2" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -154,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..8b262d1 --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 99f5b043024331ced3987079dacfe04849396240 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 13 Jan 2025 02:24:02 +0000 Subject: [PATCH 145/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 434b987..4dd3249 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ "@stdlib/math-base-assert-is-probability": "^0.2.3", "@stdlib/math-base-assert-is-safe-integer": "^0.3.0", "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.0", - "@stdlib/utils-define-read-only-property": "^0.2.2" + "@stdlib/utils-define-read-only-property": "^0.2.2", + "@stdlib/error-tools-fmtprodmsg": "^0.2.2" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.2.2", @@ -154,4 +155,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From 910d4ecaa9f0b7556d051ab80130cb8324b3842c Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 13 Jan 2025 03:00:26 +0000 Subject: [PATCH 146/190] Remove files --- index.d.ts | 705 ------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4842 ------------------------------------------------- 4 files changed, 5552 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 52025ba..0000000 --- a/index.d.ts +++ /dev/null @@ -1,705 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index c7caa31..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2024 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.2-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index 0ee6204..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 8b262d1..0000000 --- a/stats.html +++ /dev/null @@ -1,4842 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From 03a582906f4a59333623009bd46320770d3dfc99 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 13 Jan 2025 03:01:11 +0000 Subject: [PATCH 147/190] Auto-generated commit --- .editorconfig | 181 - .eslintrc.js | 1 - .gitattributes | 66 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 794 --- .github/workflows/publish.yml | 252 - .github/workflows/test.yml | 99 - .github/workflows/test_bundles.yml | 186 - .github/workflows/test_coverage.yml | 133 - .github/workflows/test_install.yml | 85 - .github/workflows/test_published_package.yml | 105 - .gitignore | 190 - .npmignore | 229 - .npmrc | 31 - CHANGELOG.md | 1947 ------- CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 101 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 303 -- package.json | 118 +- stats.html | 4842 ++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 41 files changed, 4899 insertions(+), 5898 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .github/workflows/test_published_package.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 0779e8a..0000000 --- a/.editorconfig +++ /dev/null @@ -1,181 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 -insert_final_newline = false - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim. - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 1c88e69..0000000 --- a/.gitattributes +++ /dev/null @@ -1,66 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/lib/node_modules/** -linguist-vendored -linguist-generated - -# Configure directories which should *not* be included in GitHub language statistics: -/deps/** linguist-vendored -/dist/** linguist-generated -/workshops/** linguist-vendored - -benchmark/** linguist-vendored -docs/* linguist-documentation -etc/** linguist-vendored -examples/** linguist-documentation -scripts/** linguist-vendored -test/** linguist-vendored -tools/** linguist-vendored - -# Configure files which should *not* be included in GitHub language statistics: -Makefile linguist-vendored -*.mk linguist-vendored -*.jl linguist-vendored -*.py linguist-vendored -*.R linguist-vendored - -# Configure files which should be included in GitHub language statistics: -docs/types/*.d.ts -linguist-documentation diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index cd402c1..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2025-01-13T02:11:42.056Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 2a852f4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index f4575e9..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,794 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA - uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 - with: - status: ${{ job.status }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -150,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -215,63 +212,63 @@ Copyright © 2016-2025. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 3f0c94f..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 74f1d3d..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..5c01183 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2025 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.2-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..0ee6204 --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 407feef..0000000 --- a/lib/index.js +++ /dev/null @@ -1,303 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 4dd3249..1527f54 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.3.0", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,96 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.3.0", - "@stdlib/math-base-assert-int32-is-odd": "^0.3.0", - "@stdlib/math-base-assert-is-composite": "^0.3.0", - "@stdlib/math-base-assert-is-coprime": "^0.2.2", - "@stdlib/math-base-assert-is-even": "^0.2.3", - "@stdlib/math-base-assert-is-finite": "^0.2.2", - "@stdlib/math-base-assert-is-finitef": "^0.2.2", - "@stdlib/math-base-assert-is-infinite": "^0.2.2", - "@stdlib/math-base-assert-is-infinitef": "^0.2.2", - "@stdlib/math-base-assert-is-integer": "^0.2.5", - "@stdlib/math-base-assert-is-nan": "^0.2.2", - "@stdlib/math-base-assert-is-nanf": "^0.2.2", - "@stdlib/math-base-assert-is-negative-finite": "^0.3.0", - "@stdlib/math-base-assert-is-negative-integer": "^0.3.0", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.2", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.3.0", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.3.0", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.2.1", - "@stdlib/math-base-assert-is-odd": "^0.3.0", - "@stdlib/math-base-assert-is-positive-finite": "^0.3.0", - "@stdlib/math-base-assert-is-positive-integer": "^0.3.0", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.2", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-prime": "^0.3.0", - "@stdlib/math-base-assert-is-probability": "^0.2.3", - "@stdlib/math-base-assert-is-safe-integer": "^0.3.0", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.0", - "@stdlib/utils-define-read-only-property": "^0.2.2", - "@stdlib/error-tools-fmtprodmsg": "^0.2.2" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.2", - "@stdlib/boolean-ctor": "^0.2.2", - "@stdlib/constants-float32-max": "^0.2.2", - "@stdlib/constants-float32-ninf": "^0.2.2", - "@stdlib/constants-float32-pinf": "^0.2.2", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.2", - "@stdlib/constants-float64-max": "^0.2.2", - "@stdlib/constants-float64-max-safe-integer": "^0.2.2", - "@stdlib/constants-float64-min-safe-integer": "^0.2.2", - "@stdlib/constants-float64-ninf": "^0.2.2", - "@stdlib/constants-float64-pinf": "^0.2.2", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.2", - "@stdlib/constants-int32-max": "^0.3.0", - "@stdlib/datasets-primes-100k": "^0.2.2", - "@stdlib/math-base-assert-is-evenf": "github:stdlib-js/math-base-assert-is-evenf#main", - "@stdlib/math-base-assert-is-integerf": "github:stdlib-js/math-base-assert-is-integerf#main", - "@stdlib/math-base-special-floor": "^0.2.3", - "@stdlib/math-base-special-floorf": "^0.2.2", - "@stdlib/math-base-special-gcd": "^0.3.0", - "@stdlib/math-base-special-log10": "^0.3.0", - "@stdlib/math-base-special-log2": "^0.3.0", - "@stdlib/math-base-special-pow": "^0.3.0", - "@stdlib/math-base-special-round": "^0.3.0", - "@stdlib/math-base-special-roundf": "github:stdlib-js/math-base-special-roundf#main", - "@stdlib/math-base-special-sqrt": "^0.2.2", - "@stdlib/math-base-special-trunc": "^0.2.2", - "@stdlib/math-base-special-truncf": "^0.2.2", - "@stdlib/number-ctor": "^0.2.2", - "@stdlib/number-float64-base-to-float32": "^0.2.2", - "@stdlib/number-float64-base-to-uint32": "^0.2.2", - "@stdlib/random-array-discrete-uniform": "^0.2.1", - "@stdlib/random-array-uniform": "^0.2.1", - "@stdlib/random-base-discrete-uniform": "^0.2.1", - "@stdlib/random-base-randu": "^0.2.1", - "@stdlib/utils-keys": "^0.2.2", - "@stdlib/utils-try-require": "^0.2.2", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.2" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -155,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..8b262d1 --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index 28e97ca..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.equal( keys.length > 0, true, 'has keys' ); - t.end(); -}); From b6db852a071de4a830c549521e79ed6b696e24fb Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 1 Sep 2025 20:53:33 +0000 Subject: [PATCH 148/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 56f4781..7fd80b6 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,8 @@ "@stdlib/math-base-assert-is-probabilityf": "github:stdlib-js/math-base-assert-is-probabilityf#main", "@stdlib/math-base-assert-is-safe-integer": "^0.3.0", "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.0", - "@stdlib/utils-define-read-only-property": "^0.2.2" + "@stdlib/utils-define-read-only-property": "^0.2.2", + "@stdlib/error-tools-fmtprodmsg": "^0.2.2" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.2.2", @@ -159,4 +160,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From f1506f5afbd4f3e2c706475f87e54b48d3cc6a78 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 1 Sep 2025 20:53:48 +0000 Subject: [PATCH 149/190] Remove files --- index.d.ts | 705 ------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4842 ------------------------------------------------- 4 files changed, 5552 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 52025ba..0000000 --- a/index.d.ts +++ /dev/null @@ -1,705 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index 5c01183..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2025 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.2-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";var E={};s(E,"isEvenInt32",e),s(E,"isOddInt32",t),s(E,"isComposite",i),s(E,"isCoprime",n),s(E,"isEven",r),s(E,"isFinite",d),s(E,"isFinitef",m),s(E,"isInfinite",a),s(E,"isInfinitef",o),s(E,"isInteger",j),s(E,"isnan",h),s(E,"isnanf",v),s(E,"isNegativeFinite",l),s(E,"isNegativeInteger",p),s(E,"isNegativeZero",f),s(E,"isNegativeZerof",b),s(E,"isNonNegativeFinite",g),s(E,"isNonNegativeInteger",x),s(E,"isNonPositiveFinite",c),s(E,"isNonPositiveInteger",u),s(E,"isOdd",I),s(E,"isPositiveFinite",N),s(E,"isPositiveInteger",P),s(E,"isPositiveZero",F),s(E,"isPositiveZerof",z),s(E,"isPrime",Z),s(E,"isProbability",y),s(E,"isSafeInteger",w),s(E,"isPow2Uint32",C);export{E as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index 0ee6204..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonPositiveFinite","isNonPositiveInteger","isOdd","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isSafeInteger","isPow2Uint32"],"mappings":";;6uNAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,WAAAO,GAUAN,EAAAD,EAAA,YAAAQ,GAUAP,EAAAD,EAAA,aAAAS,GAUAR,EAAAD,EAAA,cAAAU,GAUAT,EAAAD,EAAA,YAAAW,GAUAV,EAAAD,EAAA,QAAAY,GAUAX,EAAAD,EAAA,SAAAa,GAUAZ,EAAAD,EAAA,mBAAAc,GAUAb,EAAAD,EAAA,oBAAAe,GAUAd,EAAAD,EAAA,iBAAAgB,GAUAf,EAAAD,EAAA,kBAAAiB,GAUAhB,EAAAD,EAAA,sBAAAkB,GAUAjB,EAAAD,EAAA,uBAAAmB,GAUAlB,EAAAD,EAAA,sBAAAoB,GAUAnB,EAAAD,EAAA,uBAAAqB,GAUApB,EAAAD,EAAA,QAAAsB,GAUArB,EAAAD,EAAA,mBAAAuB,GAUAtB,EAAAD,EAAA,oBAAAwB,GAUAvB,EAAAD,EAAA,iBAAAyB,GAUAxB,EAAAD,EAAA,kBAAA0B,GAUAzB,EAAAD,EAAA,UAAA2B,GAUA1B,EAAAD,EAAA,gBAAA4B,GAUA3B,EAAAD,EAAA,gBAAA6B,GAUA5B,EAAAD,EAAA,eAAA8B"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 8b262d1..0000000 --- a/stats.html +++ /dev/null @@ -1,4842 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From b7c68a061f6f4bb6ca7250e6cc03c31a434d40f8 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 1 Sep 2025 20:54:27 +0000 Subject: [PATCH 150/190] Auto-generated commit --- .editorconfig | 180 - .eslintrc.js | 1 - .gitattributes | 66 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 794 --- .github/workflows/publish.yml | 252 - .github/workflows/test.yml | 99 - .github/workflows/test_bundles.yml | 186 - .github/workflows/test_coverage.yml | 133 - .github/workflows/test_install.yml | 85 - .github/workflows/test_published_package.yml | 105 - .gitignore | 194 - .npmignore | 229 - .npmrc | 31 - CHANGELOG.md | 438 -- CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 101 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 357 -- package.json | 123 +- stats.html | 4842 ++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 40 files changed, 4899 insertions(+), 4450 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .github/workflows/test_published_package.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index dab5d2a..0000000 --- a/.editorconfig +++ /dev/null @@ -1,180 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim. - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 1c88e69..0000000 --- a/.gitattributes +++ /dev/null @@ -1,66 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/lib/node_modules/** -linguist-vendored -linguist-generated - -# Configure directories which should *not* be included in GitHub language statistics: -/deps/** linguist-vendored -/dist/** linguist-generated -/workshops/** linguist-vendored - -benchmark/** linguist-vendored -docs/* linguist-documentation -etc/** linguist-vendored -examples/** linguist-documentation -scripts/** linguist-vendored -test/** linguist-vendored -tools/** linguist-vendored - -# Configure files which should *not* be included in GitHub language statistics: -Makefile linguist-vendored -*.mk linguist-vendored -*.jl linguist-vendored -*.py linguist-vendored -*.R linguist-vendored - -# Configure files which should be included in GitHub language statistics: -docs/types/*.d.ts -linguist-documentation diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 21386b4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/contributing/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index f4575e9..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,794 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA - uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 - with: - status: ${{ job.status }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -150,7 +147,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -215,63 +212,63 @@ Copyright © 2016-2025. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 93392a1..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isEvenf",require('@stdlib/math-base-assert-is-evenf/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isIntegerf",require('@stdlib/math-base-assert-is-integerf/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeIntegerf",require('@stdlib/math-base-assert-is-negative-integerf/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonnegativeIntegerf",require('@stdlib/math-base-assert-is-nonnegative-integerf/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isOddf",require('@stdlib/math-base-assert-is-oddf/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isProbabilityf",require('@stdlib/math-base-assert-is-probabilityf/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 553b4e9..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nsetReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nsetReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nsetReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nsetReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nsetReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nsetReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,qBAAsB,QAAS,+CAAgD,CAAE,EASlGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,wBAAyB,QAAS,kDAAmD,CAAE,EASxGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,iBAAkB,QAAS,0CAA2C,CAAE,EASzFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..282200d --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2025 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.2-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@esm/index.mjs";export{default as isEvenf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@esm/index.mjs";export{default as isIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@esm/index.mjs";export{default as isNegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@esm/index.mjs";export{default as isNonnegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@esm/index.mjs";export{default as isOddf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";import E from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";import O from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";import S from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import U from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@esm/index.mjs";export{default as isProbabilityf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@esm/index.mjs";import k from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";import q from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";var A={};s(A,"isEvenInt32",e),s(A,"isOddInt32",t),s(A,"isComposite",i),s(A,"isCoprime",n),s(A,"isEven",r),s(A,"isEvenf",d),s(A,"isFinite",a),s(A,"isFinitef",m),s(A,"isInfinite",o),s(A,"isInfinitef",j),s(A,"isInteger",h),s(A,"isIntegerf",v),s(A,"isnan",l),s(A,"isnanf",f),s(A,"isNegativeFinite",p),s(A,"isNegativeInteger",b),s(A,"isNegativeIntegerf",g),s(A,"isNegativeZero",x),s(A,"isNegativeZerof",c),s(A,"isNonNegativeFinite",u),s(A,"isNonNegativeInteger",I),s(A,"isNonnegativeIntegerf",N),s(A,"isNonPositiveFinite",P),s(A,"isNonPositiveInteger",F),s(A,"isOdd",y),s(A,"isOddf",z),s(A,"isPositiveFinite",Z),s(A,"isPositiveInteger",E),s(A,"isPositiveZero",O),s(A,"isPositiveZerof",w),s(A,"isPrime",C),s(A,"isProbability",S),s(A,"isProbabilityf",U),s(A,"isSafeInteger",k),s(A,"isPow2Uint32",q);export{A as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..a81f0bc --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nimport isEvenf from '@stdlib/math-base-assert-is-evenf';\nsetReadOnly( ns, 'isEvenf', isEvenf );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nimport isIntegerf from '@stdlib/math-base-assert-is-integerf';\nsetReadOnly( ns, 'isIntegerf', isIntegerf );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nimport isNegativeIntegerf from '@stdlib/math-base-assert-is-negative-integerf';\nsetReadOnly( ns, 'isNegativeIntegerf', isNegativeIntegerf );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nimport isNonnegativeIntegerf from '@stdlib/math-base-assert-is-nonnegative-integerf';\nsetReadOnly( ns, 'isNonnegativeIntegerf', isNonnegativeIntegerf );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nimport isOddf from '@stdlib/math-base-assert-is-oddf';\nsetReadOnly( ns, 'isOddf', isOddf );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nimport isProbabilityf from '@stdlib/math-base-assert-is-probabilityf';\nsetReadOnly( ns, 'isProbabilityf', isProbabilityf );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isEvenf","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isIntegerf","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeIntegerf","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonnegativeIntegerf","isNonPositiveFinite","isNonPositiveInteger","isOdd","isOddf","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isProbabilityf","isSafeInteger","isPow2Uint32"],"mappings":";;yhQAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,UAAAO,GAUAN,EAAAD,EAAA,WAAAQ,GAUAP,EAAAD,EAAA,YAAAS,GAUAR,EAAAD,EAAA,aAAAU,GAUAT,EAAAD,EAAA,cAAAW,GAUAV,EAAAD,EAAA,YAAAY,GAUAX,EAAAD,EAAA,aAAAa,GAUAZ,EAAAD,EAAA,QAAAc,GAUAb,EAAAD,EAAA,SAAAe,GAUAd,EAAAD,EAAA,mBAAAgB,GAUAf,EAAAD,EAAA,oBAAAiB,GAUAhB,EAAAD,EAAA,qBAAAkB,GAUAjB,EAAAD,EAAA,iBAAAmB,GAUAlB,EAAAD,EAAA,kBAAAoB,GAUAnB,EAAAD,EAAA,sBAAAqB,GAUApB,EAAAD,EAAA,uBAAAsB,GAUArB,EAAAD,EAAA,wBAAAuB,GAUAtB,EAAAD,EAAA,sBAAAwB,GAUAvB,EAAAD,EAAA,uBAAAyB,GAUAxB,EAAAD,EAAA,QAAA0B,GAUAzB,EAAAD,EAAA,SAAA2B,GAUA1B,EAAAD,EAAA,mBAAA4B,GAUA3B,EAAAD,EAAA,oBAAA6B,GAUA5B,EAAAD,EAAA,iBAAA8B,GAUA7B,EAAAD,EAAA,kBAAA+B,GAUA9B,EAAAD,EAAA,UAAAgC,GAUA/B,EAAAD,EAAA,gBAAAiC,GAUAhC,EAAAD,EAAA,iBAAAkC,GAUAjC,EAAAD,EAAA,gBAAAmC,GAUAlC,EAAAD,EAAA,eAAAoC"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 3e4f9c3..0000000 --- a/lib/index.js +++ /dev/null @@ -1,357 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isEvenf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-evenf} -*/ -setReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integerf} -*/ -setReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integerf} -*/ -setReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonnegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf} -*/ -setReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isOddf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-oddf} -*/ -setReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isProbabilityf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probabilityf} -*/ -setReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 7fd80b6..1527f54 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.3.0", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,101 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.3.0", - "@stdlib/math-base-assert-int32-is-odd": "^0.3.0", - "@stdlib/math-base-assert-is-composite": "^0.3.0", - "@stdlib/math-base-assert-is-coprime": "^0.2.2", - "@stdlib/math-base-assert-is-even": "^0.2.3", - "@stdlib/math-base-assert-is-evenf": "github:stdlib-js/math-base-assert-is-evenf#main", - "@stdlib/math-base-assert-is-finite": "^0.2.2", - "@stdlib/math-base-assert-is-finitef": "^0.2.2", - "@stdlib/math-base-assert-is-infinite": "^0.2.2", - "@stdlib/math-base-assert-is-infinitef": "^0.2.2", - "@stdlib/math-base-assert-is-integer": "^0.2.5", - "@stdlib/math-base-assert-is-integerf": "github:stdlib-js/math-base-assert-is-integerf#main", - "@stdlib/math-base-assert-is-nan": "^0.2.2", - "@stdlib/math-base-assert-is-nanf": "^0.2.2", - "@stdlib/math-base-assert-is-negative-finite": "^0.3.0", - "@stdlib/math-base-assert-is-negative-integer": "^0.3.0", - "@stdlib/math-base-assert-is-negative-integerf": "github:stdlib-js/math-base-assert-is-negative-integerf#main", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.2", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.3.0", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.1", - "@stdlib/math-base-assert-is-nonnegative-integerf": "github:stdlib-js/math-base-assert-is-nonnegative-integerf#main", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.3.0", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.2.1", - "@stdlib/math-base-assert-is-odd": "^0.3.0", - "@stdlib/math-base-assert-is-oddf": "github:stdlib-js/math-base-assert-is-oddf#main", - "@stdlib/math-base-assert-is-positive-finite": "^0.3.0", - "@stdlib/math-base-assert-is-positive-integer": "^0.3.0", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.2", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-prime": "^0.3.0", - "@stdlib/math-base-assert-is-probability": "^0.2.3", - "@stdlib/math-base-assert-is-probabilityf": "github:stdlib-js/math-base-assert-is-probabilityf#main", - "@stdlib/math-base-assert-is-safe-integer": "^0.3.0", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.0", - "@stdlib/utils-define-read-only-property": "^0.2.2", - "@stdlib/error-tools-fmtprodmsg": "^0.2.2" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.2", - "@stdlib/boolean-ctor": "^0.2.2", - "@stdlib/console-log-each-map": "github:stdlib-js/console-log-each-map#main", - "@stdlib/constants-float32-max": "^0.2.2", - "@stdlib/constants-float32-ninf": "^0.2.2", - "@stdlib/constants-float32-pinf": "^0.2.2", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.2", - "@stdlib/constants-float64-max": "^0.2.2", - "@stdlib/constants-float64-max-safe-integer": "^0.2.2", - "@stdlib/constants-float64-min-safe-integer": "^0.2.2", - "@stdlib/constants-float64-ninf": "^0.2.2", - "@stdlib/constants-float64-pinf": "^0.2.2", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.2", - "@stdlib/constants-int32-max": "^0.3.0", - "@stdlib/datasets-primes-100k": "^0.2.2", - "@stdlib/math-base-special-floor": "^0.2.3", - "@stdlib/math-base-special-floorf": "^0.2.2", - "@stdlib/math-base-special-gcd": "^0.3.0", - "@stdlib/math-base-special-log10": "^0.3.0", - "@stdlib/math-base-special-log2": "^0.3.0", - "@stdlib/math-base-special-pow": "^0.3.0", - "@stdlib/math-base-special-round": "^0.3.0", - "@stdlib/math-base-special-roundf": "github:stdlib-js/math-base-special-roundf#main", - "@stdlib/math-base-special-sqrt": "^0.2.2", - "@stdlib/math-base-special-trunc": "^0.2.2", - "@stdlib/math-base-special-truncf": "^0.2.2", - "@stdlib/number-ctor": "^0.2.2", - "@stdlib/number-float64-base-to-float32": "^0.2.2", - "@stdlib/random-array-discrete-uniform": "^0.2.1", - "@stdlib/random-array-uniform": "^0.2.1", - "@stdlib/random-base-discrete-uniform": "^0.2.1", - "@stdlib/random-base-randu": "^0.2.1", - "@stdlib/random-base-uniform": "^0.2.1", - "@stdlib/utils-keys": "^0.2.2", - "@stdlib/utils-try-require": "^0.2.2", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.2" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -160,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..d653dc8 --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index ecdba25..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.strictEqual( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 780bbced163db07760d6de5256ba8b0f74ad425a Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 7 Nov 2025 09:21:13 +0000 Subject: [PATCH 151/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 56f4781..7fd80b6 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,8 @@ "@stdlib/math-base-assert-is-probabilityf": "github:stdlib-js/math-base-assert-is-probabilityf#main", "@stdlib/math-base-assert-is-safe-integer": "^0.3.0", "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.0", - "@stdlib/utils-define-read-only-property": "^0.2.2" + "@stdlib/utils-define-read-only-property": "^0.2.2", + "@stdlib/error-tools-fmtprodmsg": "^0.2.2" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.2.2", @@ -159,4 +160,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From e733089da8a27f02e71876808cdd7b6ef83a4a12 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 7 Nov 2025 09:30:17 +0000 Subject: [PATCH 152/190] Remove files --- index.d.ts | 705 ------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4842 ------------------------------------------------- 4 files changed, 5552 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 52025ba..0000000 --- a/index.d.ts +++ /dev/null @@ -1,705 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index 282200d..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2025 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.2-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@esm/index.mjs";export{default as isEvenf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@esm/index.mjs";export{default as isIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@esm/index.mjs";export{default as isNegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@esm/index.mjs";export{default as isNonnegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@esm/index.mjs";export{default as isOddf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";import E from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";import O from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";import S from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import U from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@esm/index.mjs";export{default as isProbabilityf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@esm/index.mjs";import k from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";import q from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";var A={};s(A,"isEvenInt32",e),s(A,"isOddInt32",t),s(A,"isComposite",i),s(A,"isCoprime",n),s(A,"isEven",r),s(A,"isEvenf",d),s(A,"isFinite",a),s(A,"isFinitef",m),s(A,"isInfinite",o),s(A,"isInfinitef",j),s(A,"isInteger",h),s(A,"isIntegerf",v),s(A,"isnan",l),s(A,"isnanf",f),s(A,"isNegativeFinite",p),s(A,"isNegativeInteger",b),s(A,"isNegativeIntegerf",g),s(A,"isNegativeZero",x),s(A,"isNegativeZerof",c),s(A,"isNonNegativeFinite",u),s(A,"isNonNegativeInteger",I),s(A,"isNonnegativeIntegerf",N),s(A,"isNonPositiveFinite",P),s(A,"isNonPositiveInteger",F),s(A,"isOdd",y),s(A,"isOddf",z),s(A,"isPositiveFinite",Z),s(A,"isPositiveInteger",E),s(A,"isPositiveZero",O),s(A,"isPositiveZerof",w),s(A,"isPrime",C),s(A,"isProbability",S),s(A,"isProbabilityf",U),s(A,"isSafeInteger",k),s(A,"isPow2Uint32",q);export{A as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index a81f0bc..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nimport isEvenf from '@stdlib/math-base-assert-is-evenf';\nsetReadOnly( ns, 'isEvenf', isEvenf );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nimport isIntegerf from '@stdlib/math-base-assert-is-integerf';\nsetReadOnly( ns, 'isIntegerf', isIntegerf );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nimport isNegativeIntegerf from '@stdlib/math-base-assert-is-negative-integerf';\nsetReadOnly( ns, 'isNegativeIntegerf', isNegativeIntegerf );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nimport isNonnegativeIntegerf from '@stdlib/math-base-assert-is-nonnegative-integerf';\nsetReadOnly( ns, 'isNonnegativeIntegerf', isNonnegativeIntegerf );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nimport isOddf from '@stdlib/math-base-assert-is-oddf';\nsetReadOnly( ns, 'isOddf', isOddf );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nimport isProbabilityf from '@stdlib/math-base-assert-is-probabilityf';\nsetReadOnly( ns, 'isProbabilityf', isProbabilityf );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isEvenf","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isIntegerf","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeIntegerf","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonnegativeIntegerf","isNonPositiveFinite","isNonPositiveInteger","isOdd","isOddf","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isProbabilityf","isSafeInteger","isPow2Uint32"],"mappings":";;yhQAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,UAAAO,GAUAN,EAAAD,EAAA,WAAAQ,GAUAP,EAAAD,EAAA,YAAAS,GAUAR,EAAAD,EAAA,aAAAU,GAUAT,EAAAD,EAAA,cAAAW,GAUAV,EAAAD,EAAA,YAAAY,GAUAX,EAAAD,EAAA,aAAAa,GAUAZ,EAAAD,EAAA,QAAAc,GAUAb,EAAAD,EAAA,SAAAe,GAUAd,EAAAD,EAAA,mBAAAgB,GAUAf,EAAAD,EAAA,oBAAAiB,GAUAhB,EAAAD,EAAA,qBAAAkB,GAUAjB,EAAAD,EAAA,iBAAAmB,GAUAlB,EAAAD,EAAA,kBAAAoB,GAUAnB,EAAAD,EAAA,sBAAAqB,GAUApB,EAAAD,EAAA,uBAAAsB,GAUArB,EAAAD,EAAA,wBAAAuB,GAUAtB,EAAAD,EAAA,sBAAAwB,GAUAvB,EAAAD,EAAA,uBAAAyB,GAUAxB,EAAAD,EAAA,QAAA0B,GAUAzB,EAAAD,EAAA,SAAA2B,GAUA1B,EAAAD,EAAA,mBAAA4B,GAUA3B,EAAAD,EAAA,oBAAA6B,GAUA5B,EAAAD,EAAA,iBAAA8B,GAUA7B,EAAAD,EAAA,kBAAA+B,GAUA9B,EAAAD,EAAA,UAAAgC,GAUA/B,EAAAD,EAAA,gBAAAiC,GAUAhC,EAAAD,EAAA,iBAAAkC,GAUAjC,EAAAD,EAAA,gBAAAmC,GAUAlC,EAAAD,EAAA,eAAAoC"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index d653dc8..0000000 --- a/stats.html +++ /dev/null @@ -1,4842 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From 6aabf69c053298c2688552d55c53a0d2d709fd96 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 7 Nov 2025 09:30:55 +0000 Subject: [PATCH 153/190] Auto-generated commit --- .editorconfig | 180 - .eslintrc.js | 1 - .gitattributes | 66 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 794 --- .github/workflows/publish.yml | 252 - .github/workflows/test.yml | 99 - .github/workflows/test_bundles.yml | 186 - .github/workflows/test_coverage.yml | 133 - .github/workflows/test_install.yml | 85 - .github/workflows/test_published_package.yml | 105 - .gitignore | 199 - .npmignore | 229 - .npmrc | 31 - CHANGELOG.md | 441 -- CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 113 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 357 -- package.json | 123 +- stats.html | 4842 ++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 40 files changed, 4905 insertions(+), 4464 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .github/workflows/test_published_package.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index dab5d2a..0000000 --- a/.editorconfig +++ /dev/null @@ -1,180 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim. - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 1c88e69..0000000 --- a/.gitattributes +++ /dev/null @@ -1,66 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/lib/node_modules/** -linguist-vendored -linguist-generated - -# Configure directories which should *not* be included in GitHub language statistics: -/deps/** linguist-vendored -/dist/** linguist-generated -/workshops/** linguist-vendored - -benchmark/** linguist-vendored -docs/* linguist-documentation -etc/** linguist-vendored -examples/** linguist-documentation -scripts/** linguist-vendored -test/** linguist-vendored -tools/** linguist-vendored - -# Configure files which should *not* be included in GitHub language statistics: -Makefile linguist-vendored -*.mk linguist-vendored -*.jl linguist-vendored -*.py linguist-vendored -*.R linguist-vendored - -# Configure files which should be included in GitHub language statistics: -docs/types/*.d.ts -linguist-documentation diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 21386b4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/contributing/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index f4575e9..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,794 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send status to Slack channel if job fails: - - name: 'Send status to Slack channel in case of failure' - # Pin action to full length commit SHA - uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 - with: - status: ${{ job.status }} - channel: '#npm-ci' - if: failure() - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -156,7 +153,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -221,75 +218,75 @@ Copyright © 2016-2025. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-evenf]: https://github.com/stdlib-js/math-base-assert-is-evenf +[@stdlib/math/base/assert/is-evenf]: https://github.com/stdlib-js/math-base-assert-is-evenf/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-integerf]: https://github.com/stdlib-js/math-base-assert-is-integerf +[@stdlib/math/base/assert/is-integerf]: https://github.com/stdlib-js/math-base-assert-is-integerf/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-integerf]: https://github.com/stdlib-js/math-base-assert-is-negative-integerf +[@stdlib/math/base/assert/is-negative-integerf]: https://github.com/stdlib-js/math-base-assert-is-negative-integerf/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integerf]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integerf +[@stdlib/math/base/assert/is-nonnegative-integerf]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integerf/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-oddf]: https://github.com/stdlib-js/math-base-assert-is-oddf +[@stdlib/math/base/assert/is-oddf]: https://github.com/stdlib-js/math-base-assert-is-oddf/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-probabilityf]: https://github.com/stdlib-js/math-base-assert-is-probabilityf +[@stdlib/math/base/assert/is-probabilityf]: https://github.com/stdlib-js/math-base-assert-is-probabilityf/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 93392a1..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isEvenf",require('@stdlib/math-base-assert-is-evenf/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isIntegerf",require('@stdlib/math-base-assert-is-integerf/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeIntegerf",require('@stdlib/math-base-assert-is-negative-integerf/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonnegativeIntegerf",require('@stdlib/math-base-assert-is-nonnegative-integerf/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isOddf",require('@stdlib/math-base-assert-is-oddf/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isProbabilityf",require('@stdlib/math-base-assert-is-probabilityf/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 553b4e9..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nsetReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nsetReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nsetReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nsetReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nsetReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nsetReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,qBAAsB,QAAS,+CAAgD,CAAE,EASlGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,wBAAyB,QAAS,kDAAmD,CAAE,EASxGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,iBAAkB,QAAS,0CAA2C,CAAE,EASzFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..282200d --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2025 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.2-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@esm/index.mjs";export{default as isEvenf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@esm/index.mjs";export{default as isIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@esm/index.mjs";export{default as isNegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@esm/index.mjs";export{default as isNonnegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@esm/index.mjs";export{default as isOddf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";import E from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";import O from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";import S from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import U from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@esm/index.mjs";export{default as isProbabilityf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@esm/index.mjs";import k from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";import q from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";var A={};s(A,"isEvenInt32",e),s(A,"isOddInt32",t),s(A,"isComposite",i),s(A,"isCoprime",n),s(A,"isEven",r),s(A,"isEvenf",d),s(A,"isFinite",a),s(A,"isFinitef",m),s(A,"isInfinite",o),s(A,"isInfinitef",j),s(A,"isInteger",h),s(A,"isIntegerf",v),s(A,"isnan",l),s(A,"isnanf",f),s(A,"isNegativeFinite",p),s(A,"isNegativeInteger",b),s(A,"isNegativeIntegerf",g),s(A,"isNegativeZero",x),s(A,"isNegativeZerof",c),s(A,"isNonNegativeFinite",u),s(A,"isNonNegativeInteger",I),s(A,"isNonnegativeIntegerf",N),s(A,"isNonPositiveFinite",P),s(A,"isNonPositiveInteger",F),s(A,"isOdd",y),s(A,"isOddf",z),s(A,"isPositiveFinite",Z),s(A,"isPositiveInteger",E),s(A,"isPositiveZero",O),s(A,"isPositiveZerof",w),s(A,"isPrime",C),s(A,"isProbability",S),s(A,"isProbabilityf",U),s(A,"isSafeInteger",k),s(A,"isPow2Uint32",q);export{A as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..a81f0bc --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nimport isEvenf from '@stdlib/math-base-assert-is-evenf';\nsetReadOnly( ns, 'isEvenf', isEvenf );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nimport isIntegerf from '@stdlib/math-base-assert-is-integerf';\nsetReadOnly( ns, 'isIntegerf', isIntegerf );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nimport isNegativeIntegerf from '@stdlib/math-base-assert-is-negative-integerf';\nsetReadOnly( ns, 'isNegativeIntegerf', isNegativeIntegerf );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nimport isNonnegativeIntegerf from '@stdlib/math-base-assert-is-nonnegative-integerf';\nsetReadOnly( ns, 'isNonnegativeIntegerf', isNonnegativeIntegerf );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nimport isOddf from '@stdlib/math-base-assert-is-oddf';\nsetReadOnly( ns, 'isOddf', isOddf );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nimport isProbabilityf from '@stdlib/math-base-assert-is-probabilityf';\nsetReadOnly( ns, 'isProbabilityf', isProbabilityf );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isEvenf","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isIntegerf","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeIntegerf","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonnegativeIntegerf","isNonPositiveFinite","isNonPositiveInteger","isOdd","isOddf","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isProbabilityf","isSafeInteger","isPow2Uint32"],"mappings":";;yhQAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,UAAAO,GAUAN,EAAAD,EAAA,WAAAQ,GAUAP,EAAAD,EAAA,YAAAS,GAUAR,EAAAD,EAAA,aAAAU,GAUAT,EAAAD,EAAA,cAAAW,GAUAV,EAAAD,EAAA,YAAAY,GAUAX,EAAAD,EAAA,aAAAa,GAUAZ,EAAAD,EAAA,QAAAc,GAUAb,EAAAD,EAAA,SAAAe,GAUAd,EAAAD,EAAA,mBAAAgB,GAUAf,EAAAD,EAAA,oBAAAiB,GAUAhB,EAAAD,EAAA,qBAAAkB,GAUAjB,EAAAD,EAAA,iBAAAmB,GAUAlB,EAAAD,EAAA,kBAAAoB,GAUAnB,EAAAD,EAAA,sBAAAqB,GAUApB,EAAAD,EAAA,uBAAAsB,GAUArB,EAAAD,EAAA,wBAAAuB,GAUAtB,EAAAD,EAAA,sBAAAwB,GAUAvB,EAAAD,EAAA,uBAAAyB,GAUAxB,EAAAD,EAAA,QAAA0B,GAUAzB,EAAAD,EAAA,SAAA2B,GAUA1B,EAAAD,EAAA,mBAAA4B,GAUA3B,EAAAD,EAAA,oBAAA6B,GAUA5B,EAAAD,EAAA,iBAAA8B,GAUA7B,EAAAD,EAAA,kBAAA+B,GAUA9B,EAAAD,EAAA,UAAAgC,GAUA/B,EAAAD,EAAA,gBAAAiC,GAUAhC,EAAAD,EAAA,iBAAAkC,GAUAjC,EAAAD,EAAA,gBAAAmC,GAUAlC,EAAAD,EAAA,eAAAoC"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 3e4f9c3..0000000 --- a/lib/index.js +++ /dev/null @@ -1,357 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isEvenf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-evenf} -*/ -setReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integerf} -*/ -setReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integerf} -*/ -setReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonnegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf} -*/ -setReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isOddf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-oddf} -*/ -setReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isProbabilityf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probabilityf} -*/ -setReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 7fd80b6..1527f54 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.3.0", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,101 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.3.0", - "@stdlib/math-base-assert-int32-is-odd": "^0.3.0", - "@stdlib/math-base-assert-is-composite": "^0.3.0", - "@stdlib/math-base-assert-is-coprime": "^0.2.2", - "@stdlib/math-base-assert-is-even": "^0.2.3", - "@stdlib/math-base-assert-is-evenf": "github:stdlib-js/math-base-assert-is-evenf#main", - "@stdlib/math-base-assert-is-finite": "^0.2.2", - "@stdlib/math-base-assert-is-finitef": "^0.2.2", - "@stdlib/math-base-assert-is-infinite": "^0.2.2", - "@stdlib/math-base-assert-is-infinitef": "^0.2.2", - "@stdlib/math-base-assert-is-integer": "^0.2.5", - "@stdlib/math-base-assert-is-integerf": "github:stdlib-js/math-base-assert-is-integerf#main", - "@stdlib/math-base-assert-is-nan": "^0.2.2", - "@stdlib/math-base-assert-is-nanf": "^0.2.2", - "@stdlib/math-base-assert-is-negative-finite": "^0.3.0", - "@stdlib/math-base-assert-is-negative-integer": "^0.3.0", - "@stdlib/math-base-assert-is-negative-integerf": "github:stdlib-js/math-base-assert-is-negative-integerf#main", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.2", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.3.0", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.1", - "@stdlib/math-base-assert-is-nonnegative-integerf": "github:stdlib-js/math-base-assert-is-nonnegative-integerf#main", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.3.0", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.2.1", - "@stdlib/math-base-assert-is-odd": "^0.3.0", - "@stdlib/math-base-assert-is-oddf": "github:stdlib-js/math-base-assert-is-oddf#main", - "@stdlib/math-base-assert-is-positive-finite": "^0.3.0", - "@stdlib/math-base-assert-is-positive-integer": "^0.3.0", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.2", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-prime": "^0.3.0", - "@stdlib/math-base-assert-is-probability": "^0.2.3", - "@stdlib/math-base-assert-is-probabilityf": "github:stdlib-js/math-base-assert-is-probabilityf#main", - "@stdlib/math-base-assert-is-safe-integer": "^0.3.0", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.0", - "@stdlib/utils-define-read-only-property": "^0.2.2", - "@stdlib/error-tools-fmtprodmsg": "^0.2.2" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.2", - "@stdlib/boolean-ctor": "^0.2.2", - "@stdlib/console-log-each-map": "github:stdlib-js/console-log-each-map#main", - "@stdlib/constants-float32-max": "^0.2.2", - "@stdlib/constants-float32-ninf": "^0.2.2", - "@stdlib/constants-float32-pinf": "^0.2.2", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.2", - "@stdlib/constants-float64-max": "^0.2.2", - "@stdlib/constants-float64-max-safe-integer": "^0.2.2", - "@stdlib/constants-float64-min-safe-integer": "^0.2.2", - "@stdlib/constants-float64-ninf": "^0.2.2", - "@stdlib/constants-float64-pinf": "^0.2.2", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.2", - "@stdlib/constants-int32-max": "^0.3.0", - "@stdlib/datasets-primes-100k": "^0.2.2", - "@stdlib/math-base-special-floor": "^0.2.3", - "@stdlib/math-base-special-floorf": "^0.2.2", - "@stdlib/math-base-special-gcd": "^0.3.0", - "@stdlib/math-base-special-log10": "^0.3.0", - "@stdlib/math-base-special-log2": "^0.3.0", - "@stdlib/math-base-special-pow": "^0.3.0", - "@stdlib/math-base-special-round": "^0.3.0", - "@stdlib/math-base-special-roundf": "github:stdlib-js/math-base-special-roundf#main", - "@stdlib/math-base-special-sqrt": "^0.2.2", - "@stdlib/math-base-special-trunc": "^0.2.2", - "@stdlib/math-base-special-truncf": "^0.2.2", - "@stdlib/number-ctor": "^0.2.2", - "@stdlib/number-float64-base-to-float32": "^0.2.2", - "@stdlib/random-array-discrete-uniform": "^0.2.1", - "@stdlib/random-array-uniform": "^0.2.1", - "@stdlib/random-base-discrete-uniform": "^0.2.1", - "@stdlib/random-base-randu": "^0.2.1", - "@stdlib/random-base-uniform": "^0.2.1", - "@stdlib/utils-keys": "^0.2.2", - "@stdlib/utils-try-require": "^0.2.2", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.2" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -160,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..d653dc8 --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index ecdba25..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.strictEqual( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 834068a372a7f92e8a3c98310269baf08af94b4b Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 30 Jan 2026 20:51:19 +0000 Subject: [PATCH 154/190] Transform error messages --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5a3c41c..01e091c 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,8 @@ "@stdlib/math-base-assert-is-probabilityf": "^0.1.0", "@stdlib/math-base-assert-is-safe-integer": "^0.3.1", "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.1", - "@stdlib/utils-define-read-only-property": "^0.2.2" + "@stdlib/utils-define-read-only-property": "^0.2.2", + "@stdlib/error-tools-fmtprodmsg": "^0.2.2" }, "devDependencies": { "@stdlib/assert-is-boolean": "^0.2.2", @@ -159,4 +160,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} +} \ No newline at end of file From 0982ab24f2566ecc8945dc16d01184685582dfc4 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 30 Jan 2026 21:16:31 +0000 Subject: [PATCH 155/190] Remove files --- index.d.ts | 856 --------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4842 ------------------------------------------------- 4 files changed, 5703 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index d9ae8ad..0000000 --- a/index.d.ts +++ /dev/null @@ -1,856 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isEvenf = require( '@stdlib/math-base-assert-is-evenf' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isIntegerf = require( '@stdlib/math-base-assert-is-integerf' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeIntegerf = require( '@stdlib/math-base-assert-is-negative-integerf' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonnegativeIntegerf = require( '@stdlib/math-base-assert-is-nonnegative-integerf' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isOddf = require( '@stdlib/math-base-assert-is-oddf' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isProbabilityf = require( '@stdlib/math-base-assert-is-probabilityf' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a finite single-precision floating-point number is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEvenf( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEvenf( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEvenf( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEvenf( NaN ); - * // returns false - */ - isEvenf: typeof isEvenf; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a finite single-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isIntegerf( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isIntegerf( 3.14 ); - * // returns false - */ - isIntegerf: typeof isIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a finite single-precision floating-point number is a negative integer. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeIntegerf( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeIntegerf( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeIntegerf( 10.0 ); - * // returns false - */ - isNegativeIntegerf: typeof isNegativeIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a finite single-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonnegativeIntegerf( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonnegativeIntegerf( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonnegativeIntegerf( -10.0 ); - * // returns false - */ - isNonnegativeIntegerf: typeof isNonnegativeIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a finite single-precision floating-point number is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOddf( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOddf( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOddf( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOddf( NaN ); - * // returns false - */ - isOddf: typeof isOddf; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a single-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbabilityf( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbabilityf( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbabilityf( NaN ); - * // returns false - */ - isProbabilityf: typeof isProbabilityf; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index 282200d..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2025 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.2-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.0-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.0-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.0-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.3-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@esm/index.mjs";export{default as isEvenf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.5-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@esm/index.mjs";export{default as isIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.0-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@esm/index.mjs";export{default as isNegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.0-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@esm/index.mjs";export{default as isNonnegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.0-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.1-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.0-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@esm/index.mjs";export{default as isOddf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.0-esm/index.mjs";import E from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.0-esm/index.mjs";import O from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.0-esm/index.mjs";import S from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import U from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@esm/index.mjs";export{default as isProbabilityf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@esm/index.mjs";import k from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.0-esm/index.mjs";import q from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.0-esm/index.mjs";var A={};s(A,"isEvenInt32",e),s(A,"isOddInt32",t),s(A,"isComposite",i),s(A,"isCoprime",n),s(A,"isEven",r),s(A,"isEvenf",d),s(A,"isFinite",a),s(A,"isFinitef",m),s(A,"isInfinite",o),s(A,"isInfinitef",j),s(A,"isInteger",h),s(A,"isIntegerf",v),s(A,"isnan",l),s(A,"isnanf",f),s(A,"isNegativeFinite",p),s(A,"isNegativeInteger",b),s(A,"isNegativeIntegerf",g),s(A,"isNegativeZero",x),s(A,"isNegativeZerof",c),s(A,"isNonNegativeFinite",u),s(A,"isNonNegativeInteger",I),s(A,"isNonnegativeIntegerf",N),s(A,"isNonPositiveFinite",P),s(A,"isNonPositiveInteger",F),s(A,"isOdd",y),s(A,"isOddf",z),s(A,"isPositiveFinite",Z),s(A,"isPositiveInteger",E),s(A,"isPositiveZero",O),s(A,"isPositiveZerof",w),s(A,"isPrime",C),s(A,"isProbability",S),s(A,"isProbabilityf",U),s(A,"isSafeInteger",k),s(A,"isPow2Uint32",q);export{A as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index a81f0bc..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nimport isEvenf from '@stdlib/math-base-assert-is-evenf';\nsetReadOnly( ns, 'isEvenf', isEvenf );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nimport isIntegerf from '@stdlib/math-base-assert-is-integerf';\nsetReadOnly( ns, 'isIntegerf', isIntegerf );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nimport isNegativeIntegerf from '@stdlib/math-base-assert-is-negative-integerf';\nsetReadOnly( ns, 'isNegativeIntegerf', isNegativeIntegerf );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nimport isNonnegativeIntegerf from '@stdlib/math-base-assert-is-nonnegative-integerf';\nsetReadOnly( ns, 'isNonnegativeIntegerf', isNonnegativeIntegerf );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nimport isOddf from '@stdlib/math-base-assert-is-oddf';\nsetReadOnly( ns, 'isOddf', isOddf );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nimport isProbabilityf from '@stdlib/math-base-assert-is-probabilityf';\nsetReadOnly( ns, 'isProbabilityf', isProbabilityf );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isEvenf","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isIntegerf","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeIntegerf","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonnegativeIntegerf","isNonPositiveFinite","isNonPositiveInteger","isOdd","isOddf","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isProbabilityf","isSafeInteger","isPow2Uint32"],"mappings":";;yhQAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,UAAAO,GAUAN,EAAAD,EAAA,WAAAQ,GAUAP,EAAAD,EAAA,YAAAS,GAUAR,EAAAD,EAAA,aAAAU,GAUAT,EAAAD,EAAA,cAAAW,GAUAV,EAAAD,EAAA,YAAAY,GAUAX,EAAAD,EAAA,aAAAa,GAUAZ,EAAAD,EAAA,QAAAc,GAUAb,EAAAD,EAAA,SAAAe,GAUAd,EAAAD,EAAA,mBAAAgB,GAUAf,EAAAD,EAAA,oBAAAiB,GAUAhB,EAAAD,EAAA,qBAAAkB,GAUAjB,EAAAD,EAAA,iBAAAmB,GAUAlB,EAAAD,EAAA,kBAAAoB,GAUAnB,EAAAD,EAAA,sBAAAqB,GAUApB,EAAAD,EAAA,uBAAAsB,GAUArB,EAAAD,EAAA,wBAAAuB,GAUAtB,EAAAD,EAAA,sBAAAwB,GAUAvB,EAAAD,EAAA,uBAAAyB,GAUAxB,EAAAD,EAAA,QAAA0B,GAUAzB,EAAAD,EAAA,SAAA2B,GAUA1B,EAAAD,EAAA,mBAAA4B,GAUA3B,EAAAD,EAAA,oBAAA6B,GAUA5B,EAAAD,EAAA,iBAAA8B,GAUA7B,EAAAD,EAAA,kBAAA+B,GAUA9B,EAAAD,EAAA,UAAAgC,GAUA/B,EAAAD,EAAA,gBAAAiC,GAUAhC,EAAAD,EAAA,iBAAAkC,GAUAjC,EAAAD,EAAA,gBAAAmC,GAUAlC,EAAAD,EAAA,eAAAoC"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index d653dc8..0000000 --- a/stats.html +++ /dev/null @@ -1,4842 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From e61639f60b8bd56a71bbed1d969431d01ef9ca5a Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 30 Jan 2026 21:17:06 +0000 Subject: [PATCH 156/190] Auto-generated commit --- .editorconfig | 180 - .eslintrc.js | 1 - .gitattributes | 66 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 821 --- .github/workflows/publish.yml | 261 - .github/workflows/test.yml | 108 - .github/workflows/test_bundles.yml | 213 - .github/workflows/test_coverage.yml | 142 - .github/workflows/test_install.yml | 94 - .github/workflows/test_published_package.yml | 115 - .gitignore | 199 - .npmignore | 229 - .npmrc | 31 - CHANGELOG.md | 441 -- CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 113 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 357 -- package.json | 123 +- stats.html | 4842 ++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 40 files changed, 4905 insertions(+), 4564 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .github/workflows/test_published_package.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index dab5d2a..0000000 --- a/.editorconfig +++ /dev/null @@ -1,180 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim. - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 1c88e69..0000000 --- a/.gitattributes +++ /dev/null @@ -1,66 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/lib/node_modules/** -linguist-vendored -linguist-generated - -# Configure directories which should *not* be included in GitHub language statistics: -/deps/** linguist-vendored -/dist/** linguist-generated -/workshops/** linguist-vendored - -benchmark/** linguist-vendored -docs/* linguist-documentation -etc/** linguist-vendored -examples/** linguist-documentation -scripts/** linguist-vendored -test/** linguist-vendored -tools/** linguist-vendored - -# Configure files which should *not* be included in GitHub language statistics: -Makefile linguist-vendored -*.mk linguist-vendored -*.jl linguist-vendored -*.py linguist-vendored -*.R linguist-vendored - -# Configure files which should be included in GitHub language statistics: -docs/types/*.d.ts -linguist-documentation diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 21386b4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/contributing/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 83d50c4..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,821 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send notification to Zulip if job fails: - - name: 'Send notification to Zulip in case of failure' - # Pin action to full length commit SHA - uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2 - if: failure() - with: - api-key: ${{ secrets.ZULIP_API_KEY }} - email: 'github-actions-bot@stdlib.zulipchat.com' - organization-url: 'https://stdlib.zulipchat.com' - to: 'workflows-standalone' - type: 'stream' - topic: ${{ github.event.repository.name }} - content: | - :cross_mark: **${{ github.workflow }}** workflow failed - - **Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }}) - **Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -156,7 +153,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -221,75 +218,75 @@ Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-evenf]: https://github.com/stdlib-js/math-base-assert-is-evenf +[@stdlib/math/base/assert/is-evenf]: https://github.com/stdlib-js/math-base-assert-is-evenf/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-integerf]: https://github.com/stdlib-js/math-base-assert-is-integerf +[@stdlib/math/base/assert/is-integerf]: https://github.com/stdlib-js/math-base-assert-is-integerf/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-integerf]: https://github.com/stdlib-js/math-base-assert-is-negative-integerf +[@stdlib/math/base/assert/is-negative-integerf]: https://github.com/stdlib-js/math-base-assert-is-negative-integerf/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integerf]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integerf +[@stdlib/math/base/assert/is-nonnegative-integerf]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integerf/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-oddf]: https://github.com/stdlib-js/math-base-assert-is-oddf +[@stdlib/math/base/assert/is-oddf]: https://github.com/stdlib-js/math-base-assert-is-oddf/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-probabilityf]: https://github.com/stdlib-js/math-base-assert-is-probabilityf +[@stdlib/math/base/assert/is-probabilityf]: https://github.com/stdlib-js/math-base-assert-is-probabilityf/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 93392a1..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isEvenf",require('@stdlib/math-base-assert-is-evenf/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isIntegerf",require('@stdlib/math-base-assert-is-integerf/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeIntegerf",require('@stdlib/math-base-assert-is-negative-integerf/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonnegativeIntegerf",require('@stdlib/math-base-assert-is-nonnegative-integerf/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isOddf",require('@stdlib/math-base-assert-is-oddf/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isProbabilityf",require('@stdlib/math-base-assert-is-probabilityf/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 553b4e9..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nsetReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nsetReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nsetReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nsetReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nsetReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nsetReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,qBAAsB,QAAS,+CAAgD,CAAE,EASlGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,wBAAyB,QAAS,kDAAmD,CAAE,EASxGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,iBAAkB,QAAS,0CAA2C,CAAE,EASzFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..bf1fbb4 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2026 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@esm/index.mjs";export{default as isEvenf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@esm/index.mjs";export{default as isIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@esm/index.mjs";export{default as isNegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@esm/index.mjs";export{default as isNonnegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@esm/index.mjs";export{default as isOddf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@esm/index.mjs";import E from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@esm/index.mjs";import O from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@esm/index.mjs";import S from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@esm/index.mjs";import U from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@esm/index.mjs";export{default as isProbabilityf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@esm/index.mjs";import k from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@esm/index.mjs";import q from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@esm/index.mjs";var A={};s(A,"isEvenInt32",e),s(A,"isOddInt32",t),s(A,"isComposite",i),s(A,"isCoprime",n),s(A,"isEven",r),s(A,"isEvenf",d),s(A,"isFinite",a),s(A,"isFinitef",m),s(A,"isInfinite",o),s(A,"isInfinitef",j),s(A,"isInteger",h),s(A,"isIntegerf",l),s(A,"isnan",f),s(A,"isnanf",p),s(A,"isNegativeFinite",b),s(A,"isNegativeInteger",v),s(A,"isNegativeIntegerf",g),s(A,"isNegativeZero",x),s(A,"isNegativeZerof",c),s(A,"isNonNegativeFinite",u),s(A,"isNonNegativeInteger",I),s(A,"isNonnegativeIntegerf",N),s(A,"isNonPositiveFinite",P),s(A,"isNonPositiveInteger",F),s(A,"isOdd",y),s(A,"isOddf",z),s(A,"isPositiveFinite",Z),s(A,"isPositiveInteger",E),s(A,"isPositiveZero",O),s(A,"isPositiveZerof",w),s(A,"isPrime",C),s(A,"isProbability",S),s(A,"isProbabilityf",U),s(A,"isSafeInteger",k),s(A,"isPow2Uint32",q);export{A as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..f325cdb --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nimport isEvenf from '@stdlib/math-base-assert-is-evenf';\nsetReadOnly( ns, 'isEvenf', isEvenf );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nimport isIntegerf from '@stdlib/math-base-assert-is-integerf';\nsetReadOnly( ns, 'isIntegerf', isIntegerf );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nimport isNegativeIntegerf from '@stdlib/math-base-assert-is-negative-integerf';\nsetReadOnly( ns, 'isNegativeIntegerf', isNegativeIntegerf );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nimport isNonnegativeIntegerf from '@stdlib/math-base-assert-is-nonnegative-integerf';\nsetReadOnly( ns, 'isNonnegativeIntegerf', isNonnegativeIntegerf );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nimport isOddf from '@stdlib/math-base-assert-is-oddf';\nsetReadOnly( ns, 'isOddf', isOddf );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nimport isProbabilityf from '@stdlib/math-base-assert-is-probabilityf';\nsetReadOnly( ns, 'isProbabilityf', isProbabilityf );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isEvenf","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isIntegerf","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeIntegerf","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonnegativeIntegerf","isNonPositiveFinite","isNonPositiveInteger","isOdd","isOddf","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isProbabilityf","isSafeInteger","isPow2Uint32"],"mappings":";;4nPAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,UAAAO,GAUAN,EAAAD,EAAA,WAAAQ,GAUAP,EAAAD,EAAA,YAAAS,GAUAR,EAAAD,EAAA,aAAAU,GAUAT,EAAAD,EAAA,cAAAW,GAUAV,EAAAD,EAAA,YAAAY,GAUAX,EAAAD,EAAA,aAAAa,GAUAZ,EAAAD,EAAA,QAAAc,GAUAb,EAAAD,EAAA,SAAAe,GAUAd,EAAAD,EAAA,mBAAAgB,GAUAf,EAAAD,EAAA,oBAAAiB,GAUAhB,EAAAD,EAAA,qBAAAkB,GAUAjB,EAAAD,EAAA,iBAAAmB,GAUAlB,EAAAD,EAAA,kBAAAoB,GAUAnB,EAAAD,EAAA,sBAAAqB,GAUApB,EAAAD,EAAA,uBAAAsB,GAUArB,EAAAD,EAAA,wBAAAuB,GAUAtB,EAAAD,EAAA,sBAAAwB,GAUAvB,EAAAD,EAAA,uBAAAyB,GAUAxB,EAAAD,EAAA,QAAA0B,GAUAzB,EAAAD,EAAA,SAAA2B,GAUA1B,EAAAD,EAAA,mBAAA4B,GAUA3B,EAAAD,EAAA,oBAAA6B,GAUA5B,EAAAD,EAAA,iBAAA8B,GAUA7B,EAAAD,EAAA,kBAAA+B,GAUA9B,EAAAD,EAAA,UAAAgC,GAUA/B,EAAAD,EAAA,gBAAAiC,GAUAhC,EAAAD,EAAA,iBAAAkC,GAUAjC,EAAAD,EAAA,gBAAAmC,GAUAlC,EAAAD,EAAA,eAAAoC"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 3e4f9c3..0000000 --- a/lib/index.js +++ /dev/null @@ -1,357 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isEvenf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-evenf} -*/ -setReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integerf} -*/ -setReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integerf} -*/ -setReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonnegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf} -*/ -setReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isOddf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-oddf} -*/ -setReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isProbabilityf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probabilityf} -*/ -setReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 01e091c..eedb5fa 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.4.0", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,101 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.3.1", - "@stdlib/math-base-assert-int32-is-odd": "^0.3.1", - "@stdlib/math-base-assert-is-composite": "^0.3.1", - "@stdlib/math-base-assert-is-coprime": "^0.2.2", - "@stdlib/math-base-assert-is-even": "^0.2.4", - "@stdlib/math-base-assert-is-evenf": "github:stdlib-js/math-base-assert-is-evenf#main", - "@stdlib/math-base-assert-is-finite": "^0.2.2", - "@stdlib/math-base-assert-is-finitef": "^0.2.2", - "@stdlib/math-base-assert-is-infinite": "^0.2.2", - "@stdlib/math-base-assert-is-infinitef": "^0.2.2", - "@stdlib/math-base-assert-is-integer": "^0.2.6", - "@stdlib/math-base-assert-is-integerf": "github:stdlib-js/math-base-assert-is-integerf#main", - "@stdlib/math-base-assert-is-nan": "^0.2.2", - "@stdlib/math-base-assert-is-nanf": "^0.2.2", - "@stdlib/math-base-assert-is-negative-finite": "^0.3.1", - "@stdlib/math-base-assert-is-negative-integer": "^0.3.1", - "@stdlib/math-base-assert-is-negative-integerf": "^0.1.0", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.2", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.3.1", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.2", - "@stdlib/math-base-assert-is-nonnegative-integerf": "^0.1.0", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.3.1", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.2.2", - "@stdlib/math-base-assert-is-odd": "^0.3.1", - "@stdlib/math-base-assert-is-oddf": "^0.1.0", - "@stdlib/math-base-assert-is-positive-finite": "^0.3.1", - "@stdlib/math-base-assert-is-positive-integer": "^0.3.1", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.2", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-prime": "^0.3.1", - "@stdlib/math-base-assert-is-probability": "^0.2.3", - "@stdlib/math-base-assert-is-probabilityf": "^0.1.0", - "@stdlib/math-base-assert-is-safe-integer": "^0.3.1", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.1", - "@stdlib/utils-define-read-only-property": "^0.2.2", - "@stdlib/error-tools-fmtprodmsg": "^0.2.2" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.2", - "@stdlib/boolean-ctor": "^0.2.2", - "@stdlib/console-log-each-map": "^0.1.0", - "@stdlib/constants-float32-max": "^0.2.2", - "@stdlib/constants-float32-ninf": "^0.2.2", - "@stdlib/constants-float32-pinf": "^0.2.2", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.2", - "@stdlib/constants-float64-max": "^0.2.2", - "@stdlib/constants-float64-max-safe-integer": "^0.2.2", - "@stdlib/constants-float64-min-safe-integer": "^0.2.2", - "@stdlib/constants-float64-ninf": "^0.2.2", - "@stdlib/constants-float64-pinf": "^0.2.2", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.2", - "@stdlib/constants-int32-max": "^0.3.0", - "@stdlib/datasets-primes-100k": "^0.2.2", - "@stdlib/math-base-special-floor": "^0.2.3", - "@stdlib/math-base-special-floorf": "^0.2.2", - "@stdlib/math-base-special-gcd": "^0.3.1", - "@stdlib/math-base-special-log10": "^0.3.0", - "@stdlib/math-base-special-log2": "^0.3.0", - "@stdlib/math-base-special-pow": "^0.3.0", - "@stdlib/math-base-special-round": "^0.3.0", - "@stdlib/math-base-special-roundf": "github:stdlib-js/math-base-special-roundf#main", - "@stdlib/math-base-special-sqrt": "^0.2.2", - "@stdlib/math-base-special-trunc": "^0.2.2", - "@stdlib/math-base-special-truncf": "^0.2.2", - "@stdlib/number-ctor": "^0.2.2", - "@stdlib/number-float64-base-to-float32": "^0.2.2", - "@stdlib/random-array-discrete-uniform": "^0.2.1", - "@stdlib/random-array-uniform": "^0.2.1", - "@stdlib/random-base-discrete-uniform": "^0.2.1", - "@stdlib/random-base-randu": "^0.2.1", - "@stdlib/random-base-uniform": "^0.2.1", - "@stdlib/utils-keys": "^0.2.2", - "@stdlib/utils-try-require": "^0.2.2", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.2" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -160,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..dbc828c --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index ecdba25..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.strictEqual( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 5d452e9c082fd39f86ceb6384dc3afdfa096dd56 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Fri, 30 Jan 2026 21:22:46 +0000 Subject: [PATCH 157/190] Update README.md for ESM bundle v0.4.0 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c20f166..5e1dc2a 100644 --- a/README.md +++ b/README.md @@ -42,13 +42,13 @@ limitations under the License. ## Usage ```javascript -import ns from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@esm/index.mjs'; +import ns from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@v0.4.0-esm/index.mjs'; ``` You can also import the following named exports from the package: ```javascript -import { isComposite, isCoprime, isEven, isEvenInt32, isEvenf, isFinite, isFinitef, isInfinite, isInfinitef, isInteger, isIntegerf, isNegativeFinite, isNegativeInteger, isNegativeIntegerf, isNegativeZero, isNegativeZerof, isNonNegativeFinite, isNonNegativeInteger, isNonPositiveFinite, isNonPositiveInteger, isNonnegativeIntegerf, isOdd, isOddInt32, isOddf, isPositiveFinite, isPositiveInteger, isPositiveZero, isPositiveZerof, isPow2Uint32, isPrime, isProbability, isProbabilityf, isSafeInteger, isnan, isnanf } from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@esm/index.mjs'; +import { isComposite, isCoprime, isEven, isEvenInt32, isEvenf, isFinite, isFinitef, isInfinite, isInfinitef, isInteger, isIntegerf, isNegativeFinite, isNegativeInteger, isNegativeIntegerf, isNegativeZero, isNegativeZerof, isNonNegativeFinite, isNonNegativeInteger, isNonPositiveFinite, isNonPositiveInteger, isNonnegativeIntegerf, isOdd, isOddInt32, isOddf, isPositiveFinite, isPositiveInteger, isPositiveZero, isPositiveZerof, isPow2Uint32, isPrime, isProbability, isProbabilityf, isSafeInteger, isnan, isnanf } from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@v0.4.0-esm/index.mjs'; ``` #### ns @@ -123,7 +123,7 @@ var o = ns; - - - - From 8645f6bd3f9aad14f774bf3401c36138d8dcc688 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 2 Feb 2026 04:27:27 +0000 Subject: [PATCH 161/190] Auto-generated commit --- .editorconfig | 180 - .eslintrc.js | 1 - .gitattributes | 66 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 821 --- .github/workflows/publish.yml | 261 - .github/workflows/test.yml | 108 - .github/workflows/test_bundles.yml | 213 - .github/workflows/test_coverage.yml | 142 - .github/workflows/test_install.yml | 94 - .github/workflows/test_published_package.yml | 115 - .gitignore | 199 - .npmignore | 229 - .npmrc | 31 - CHANGELOG.md | 441 -- CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 113 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 357 -- package.json | 123 +- stats.html | 4842 ++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 41 files changed, 4905 insertions(+), 4565 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .github/workflows/test_published_package.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index dab5d2a..0000000 --- a/.editorconfig +++ /dev/null @@ -1,180 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim. - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 1c88e69..0000000 --- a/.gitattributes +++ /dev/null @@ -1,66 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/lib/node_modules/** -linguist-vendored -linguist-generated - -# Configure directories which should *not* be included in GitHub language statistics: -/deps/** linguist-vendored -/dist/** linguist-generated -/workshops/** linguist-vendored - -benchmark/** linguist-vendored -docs/* linguist-documentation -etc/** linguist-vendored -examples/** linguist-documentation -scripts/** linguist-vendored -test/** linguist-vendored -tools/** linguist-vendored - -# Configure files which should *not* be included in GitHub language statistics: -Makefile linguist-vendored -*.mk linguist-vendored -*.jl linguist-vendored -*.py linguist-vendored -*.R linguist-vendored - -# Configure files which should be included in GitHub language statistics: -docs/types/*.d.ts -linguist-documentation diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index ea62a4d..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2026-02-02T02:40:50.089Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 21386b4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/contributing/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 83d50c4..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,821 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send notification to Zulip if job fails: - - name: 'Send notification to Zulip in case of failure' - # Pin action to full length commit SHA - uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2 - if: failure() - with: - api-key: ${{ secrets.ZULIP_API_KEY }} - email: 'github-actions-bot@stdlib.zulipchat.com' - organization-url: 'https://stdlib.zulipchat.com' - to: 'workflows-standalone' - type: 'stream' - topic: ${{ github.event.repository.name }} - content: | - :cross_mark: **${{ github.workflow }}** workflow failed - - **Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }}) - **Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -156,7 +153,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -221,75 +218,75 @@ Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-evenf]: https://github.com/stdlib-js/math-base-assert-is-evenf +[@stdlib/math/base/assert/is-evenf]: https://github.com/stdlib-js/math-base-assert-is-evenf/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-integerf]: https://github.com/stdlib-js/math-base-assert-is-integerf +[@stdlib/math/base/assert/is-integerf]: https://github.com/stdlib-js/math-base-assert-is-integerf/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-integerf]: https://github.com/stdlib-js/math-base-assert-is-negative-integerf +[@stdlib/math/base/assert/is-negative-integerf]: https://github.com/stdlib-js/math-base-assert-is-negative-integerf/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integerf]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integerf +[@stdlib/math/base/assert/is-nonnegative-integerf]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integerf/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-oddf]: https://github.com/stdlib-js/math-base-assert-is-oddf +[@stdlib/math/base/assert/is-oddf]: https://github.com/stdlib-js/math-base-assert-is-oddf/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-probabilityf]: https://github.com/stdlib-js/math-base-assert-is-probabilityf +[@stdlib/math/base/assert/is-probabilityf]: https://github.com/stdlib-js/math-base-assert-is-probabilityf/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 93392a1..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isEvenf",require('@stdlib/math-base-assert-is-evenf/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isIntegerf",require('@stdlib/math-base-assert-is-integerf/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeIntegerf",require('@stdlib/math-base-assert-is-negative-integerf/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonnegativeIntegerf",require('@stdlib/math-base-assert-is-nonnegative-integerf/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isOddf",require('@stdlib/math-base-assert-is-oddf/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isProbabilityf",require('@stdlib/math-base-assert-is-probabilityf/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 553b4e9..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nsetReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nsetReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nsetReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nsetReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nsetReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nsetReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,qBAAsB,QAAS,+CAAgD,CAAE,EASlGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,wBAAyB,QAAS,kDAAmD,CAAE,EASxGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,iBAAkB,QAAS,0CAA2C,CAAE,EASzFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..21f15b1 --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2026 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.3-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.1-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.1-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.4-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.4-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.0-esm/index.mjs";export{default as isEvenf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.0-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.6-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.6-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.0-esm/index.mjs";export{default as isIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.0-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.0-esm/index.mjs";export{default as isNegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.0-esm/index.mjs";export{default as isNonnegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.1-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.2-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.2-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.1-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.0-esm/index.mjs";export{default as isOddf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.0-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.1-esm/index.mjs";import E from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.1-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.1-esm/index.mjs";import O from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.1-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.1-esm/index.mjs";import S from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import U from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.0-esm/index.mjs";export{default as isProbabilityf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.0-esm/index.mjs";import k from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.1-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.1-esm/index.mjs";import q from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.1-esm/index.mjs";var A={};s(A,"isEvenInt32",e),s(A,"isOddInt32",t),s(A,"isComposite",i),s(A,"isCoprime",n),s(A,"isEven",r),s(A,"isEvenf",d),s(A,"isFinite",a),s(A,"isFinitef",m),s(A,"isInfinite",o),s(A,"isInfinitef",j),s(A,"isInteger",h),s(A,"isIntegerf",v),s(A,"isnan",l),s(A,"isnanf",f),s(A,"isNegativeFinite",p),s(A,"isNegativeInteger",b),s(A,"isNegativeIntegerf",g),s(A,"isNegativeZero",x),s(A,"isNegativeZerof",c),s(A,"isNonNegativeFinite",u),s(A,"isNonNegativeInteger",I),s(A,"isNonnegativeIntegerf",N),s(A,"isNonPositiveFinite",P),s(A,"isNonPositiveInteger",F),s(A,"isOdd",y),s(A,"isOddf",z),s(A,"isPositiveFinite",Z),s(A,"isPositiveInteger",E),s(A,"isPositiveZero",O),s(A,"isPositiveZerof",w),s(A,"isPrime",C),s(A,"isProbability",S),s(A,"isProbabilityf",U),s(A,"isSafeInteger",k),s(A,"isPow2Uint32",q);export{A as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..d82b9be --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nimport isEvenf from '@stdlib/math-base-assert-is-evenf';\nsetReadOnly( ns, 'isEvenf', isEvenf );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nimport isIntegerf from '@stdlib/math-base-assert-is-integerf';\nsetReadOnly( ns, 'isIntegerf', isIntegerf );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nimport isNegativeIntegerf from '@stdlib/math-base-assert-is-negative-integerf';\nsetReadOnly( ns, 'isNegativeIntegerf', isNegativeIntegerf );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nimport isNonnegativeIntegerf from '@stdlib/math-base-assert-is-nonnegative-integerf';\nsetReadOnly( ns, 'isNonnegativeIntegerf', isNonnegativeIntegerf );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nimport isOddf from '@stdlib/math-base-assert-is-oddf';\nsetReadOnly( ns, 'isOddf', isOddf );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nimport isProbabilityf from '@stdlib/math-base-assert-is-probabilityf';\nsetReadOnly( ns, 'isProbabilityf', isProbabilityf );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isEvenf","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isIntegerf","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeIntegerf","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonnegativeIntegerf","isNonPositiveFinite","isNonPositiveInteger","isOdd","isOddf","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isProbabilityf","isSafeInteger","isPow2Uint32"],"mappings":";;6mQAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,UAAAO,GAUAN,EAAAD,EAAA,WAAAQ,GAUAP,EAAAD,EAAA,YAAAS,GAUAR,EAAAD,EAAA,aAAAU,GAUAT,EAAAD,EAAA,cAAAW,GAUAV,EAAAD,EAAA,YAAAY,GAUAX,EAAAD,EAAA,aAAAa,GAUAZ,EAAAD,EAAA,QAAAc,GAUAb,EAAAD,EAAA,SAAAe,GAUAd,EAAAD,EAAA,mBAAAgB,GAUAf,EAAAD,EAAA,oBAAAiB,GAUAhB,EAAAD,EAAA,qBAAAkB,GAUAjB,EAAAD,EAAA,iBAAAmB,GAUAlB,EAAAD,EAAA,kBAAAoB,GAUAnB,EAAAD,EAAA,sBAAAqB,GAUApB,EAAAD,EAAA,uBAAAsB,GAUArB,EAAAD,EAAA,wBAAAuB,GAUAtB,EAAAD,EAAA,sBAAAwB,GAUAvB,EAAAD,EAAA,uBAAAyB,GAUAxB,EAAAD,EAAA,QAAA0B,GAUAzB,EAAAD,EAAA,SAAA2B,GAUA1B,EAAAD,EAAA,mBAAA4B,GAUA3B,EAAAD,EAAA,oBAAA6B,GAUA5B,EAAAD,EAAA,iBAAA8B,GAUA7B,EAAAD,EAAA,kBAAA+B,GAUA9B,EAAAD,EAAA,UAAAgC,GAUA/B,EAAAD,EAAA,gBAAAiC,GAUAhC,EAAAD,EAAA,iBAAAkC,GAUAjC,EAAAD,EAAA,gBAAAmC,GAUAlC,EAAAD,EAAA,eAAAoC"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 3e4f9c3..0000000 --- a/lib/index.js +++ /dev/null @@ -1,357 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isEvenf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-evenf} -*/ -setReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integerf} -*/ -setReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integerf} -*/ -setReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonnegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf} -*/ -setReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isOddf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-oddf} -*/ -setReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isProbabilityf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probabilityf} -*/ -setReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 4b1021c..eedb5fa 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.4.0", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,101 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.3.1", - "@stdlib/math-base-assert-int32-is-odd": "^0.3.1", - "@stdlib/math-base-assert-is-composite": "^0.3.1", - "@stdlib/math-base-assert-is-coprime": "^0.2.2", - "@stdlib/math-base-assert-is-even": "^0.2.4", - "@stdlib/math-base-assert-is-evenf": "^0.1.0", - "@stdlib/math-base-assert-is-finite": "^0.2.2", - "@stdlib/math-base-assert-is-finitef": "^0.2.2", - "@stdlib/math-base-assert-is-infinite": "^0.2.2", - "@stdlib/math-base-assert-is-infinitef": "^0.2.2", - "@stdlib/math-base-assert-is-integer": "^0.2.6", - "@stdlib/math-base-assert-is-integerf": "^0.1.0", - "@stdlib/math-base-assert-is-nan": "^0.2.2", - "@stdlib/math-base-assert-is-nanf": "^0.2.2", - "@stdlib/math-base-assert-is-negative-finite": "^0.3.1", - "@stdlib/math-base-assert-is-negative-integer": "^0.3.1", - "@stdlib/math-base-assert-is-negative-integerf": "^0.1.0", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.2", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.3.1", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.2", - "@stdlib/math-base-assert-is-nonnegative-integerf": "^0.1.0", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.3.1", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.2.2", - "@stdlib/math-base-assert-is-odd": "^0.3.1", - "@stdlib/math-base-assert-is-oddf": "^0.1.0", - "@stdlib/math-base-assert-is-positive-finite": "^0.3.1", - "@stdlib/math-base-assert-is-positive-integer": "^0.3.1", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.2", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-prime": "^0.3.1", - "@stdlib/math-base-assert-is-probability": "^0.2.3", - "@stdlib/math-base-assert-is-probabilityf": "^0.1.0", - "@stdlib/math-base-assert-is-safe-integer": "^0.3.1", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.1", - "@stdlib/utils-define-read-only-property": "^0.2.3", - "@stdlib/error-tools-fmtprodmsg": "^0.2.2" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.2", - "@stdlib/boolean-ctor": "^0.2.2", - "@stdlib/console-log-each-map": "^0.1.0", - "@stdlib/constants-float32-max": "^0.2.2", - "@stdlib/constants-float32-ninf": "^0.2.2", - "@stdlib/constants-float32-pinf": "^0.2.2", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.2", - "@stdlib/constants-float64-max": "^0.2.2", - "@stdlib/constants-float64-max-safe-integer": "^0.2.2", - "@stdlib/constants-float64-min-safe-integer": "^0.2.2", - "@stdlib/constants-float64-ninf": "^0.2.2", - "@stdlib/constants-float64-pinf": "^0.2.2", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.2", - "@stdlib/constants-int32-max": "^0.3.0", - "@stdlib/datasets-primes-100k": "^0.2.2", - "@stdlib/math-base-special-floor": "^0.2.3", - "@stdlib/math-base-special-floorf": "^0.2.2", - "@stdlib/math-base-special-gcd": "^0.3.1", - "@stdlib/math-base-special-log10": "^0.3.0", - "@stdlib/math-base-special-log2": "^0.3.0", - "@stdlib/math-base-special-pow": "^0.3.0", - "@stdlib/math-base-special-round": "^0.3.0", - "@stdlib/math-base-special-roundf": "^0.1.0", - "@stdlib/math-base-special-sqrt": "^0.2.2", - "@stdlib/math-base-special-trunc": "^0.2.2", - "@stdlib/math-base-special-truncf": "^0.2.2", - "@stdlib/number-ctor": "^0.2.2", - "@stdlib/number-float64-base-to-float32": "^0.2.2", - "@stdlib/random-array-discrete-uniform": "^0.2.1", - "@stdlib/random-array-uniform": "^0.2.1", - "@stdlib/random-base-discrete-uniform": "^0.2.1", - "@stdlib/random-base-randu": "^0.2.2", - "@stdlib/random-base-uniform": "^0.2.2", - "@stdlib/utils-keys": "^0.2.2", - "@stdlib/utils-try-require": "^0.2.2", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.2" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", @@ -160,4 +43,4 @@ "type": "opencollective", "url": "https://opencollective.com/stdlib" } -} \ No newline at end of file +} diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..ac7cdad --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index ecdba25..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.strictEqual( keys.length > 0, true, 'has keys' ); - t.end(); -}); From b1b58c0fa2642023321d4a691edc79e7cb60fb70 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 8 Feb 2026 06:30:19 +0000 Subject: [PATCH 162/190] Transform error messages --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5e9d0be..15c041d 100644 --- a/package.json +++ b/package.json @@ -107,7 +107,7 @@ "@stdlib/random-base-discrete-uniform": "^0.2.1", "@stdlib/random-base-randu": "^0.2.2", "@stdlib/random-base-uniform": "^0.2.2", - "@stdlib/string-format": "^0.2.3", + "@stdlib/error-tools-fmtprodmsg": "^0.2.3", "@stdlib/utils-keys": "^0.2.3", "@stdlib/utils-try-require": "^0.2.3", "tape": "git+https://github.com/kgryte/tape.git#fix/globby", From 5004b324b68cb89958edd822cace6a019e91f4b6 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 8 Feb 2026 07:29:42 +0000 Subject: [PATCH 163/190] Remove files --- index.d.ts | 856 --------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4842 ------------------------------------------------- 4 files changed, 5703 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index d9ae8ad..0000000 --- a/index.d.ts +++ /dev/null @@ -1,856 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isEvenf = require( '@stdlib/math-base-assert-is-evenf' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isIntegerf = require( '@stdlib/math-base-assert-is-integerf' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeIntegerf = require( '@stdlib/math-base-assert-is-negative-integerf' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonnegativeIntegerf = require( '@stdlib/math-base-assert-is-nonnegative-integerf' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isOddf = require( '@stdlib/math-base-assert-is-oddf' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isProbabilityf = require( '@stdlib/math-base-assert-is-probabilityf' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a finite single-precision floating-point number is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEvenf( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEvenf( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEvenf( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEvenf( NaN ); - * // returns false - */ - isEvenf: typeof isEvenf; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a finite single-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isIntegerf( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isIntegerf( 3.14 ); - * // returns false - */ - isIntegerf: typeof isIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a finite single-precision floating-point number is a negative integer. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeIntegerf( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeIntegerf( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeIntegerf( 10.0 ); - * // returns false - */ - isNegativeIntegerf: typeof isNegativeIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a finite single-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonnegativeIntegerf( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonnegativeIntegerf( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonnegativeIntegerf( -10.0 ); - * // returns false - */ - isNonnegativeIntegerf: typeof isNonnegativeIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a finite single-precision floating-point number is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOddf( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOddf( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOddf( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOddf( NaN ); - * // returns false - */ - isOddf: typeof isOddf; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a single-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbabilityf( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbabilityf( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbabilityf( NaN ); - * // returns false - */ - isProbabilityf: typeof isProbabilityf; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index 21f15b1..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2026 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.3-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.1-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.1-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.1-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.1-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.1-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.1-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.2-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.4-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.4-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.0-esm/index.mjs";export{default as isEvenf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.0-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.2-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.2-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.6-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.6-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.0-esm/index.mjs";export{default as isIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.0-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.2-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.2-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.1-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.1-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.0-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.0-esm/index.mjs";export{default as isNegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.0-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.2-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.1-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.1-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.1-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.0-esm/index.mjs";export{default as isNonnegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.0-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.1-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.1-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.2-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.2-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.1-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.1-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.0-esm/index.mjs";export{default as isOddf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.0-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.1-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.1-esm/index.mjs";import E from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.1-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.1-esm/index.mjs";import O from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.2-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.1-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.1-esm/index.mjs";import S from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.3-esm/index.mjs";import U from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.0-esm/index.mjs";export{default as isProbabilityf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.0-esm/index.mjs";import k from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.1-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.1-esm/index.mjs";import q from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.1-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.1-esm/index.mjs";var A={};s(A,"isEvenInt32",e),s(A,"isOddInt32",t),s(A,"isComposite",i),s(A,"isCoprime",n),s(A,"isEven",r),s(A,"isEvenf",d),s(A,"isFinite",a),s(A,"isFinitef",m),s(A,"isInfinite",o),s(A,"isInfinitef",j),s(A,"isInteger",h),s(A,"isIntegerf",v),s(A,"isnan",l),s(A,"isnanf",f),s(A,"isNegativeFinite",p),s(A,"isNegativeInteger",b),s(A,"isNegativeIntegerf",g),s(A,"isNegativeZero",x),s(A,"isNegativeZerof",c),s(A,"isNonNegativeFinite",u),s(A,"isNonNegativeInteger",I),s(A,"isNonnegativeIntegerf",N),s(A,"isNonPositiveFinite",P),s(A,"isNonPositiveInteger",F),s(A,"isOdd",y),s(A,"isOddf",z),s(A,"isPositiveFinite",Z),s(A,"isPositiveInteger",E),s(A,"isPositiveZero",O),s(A,"isPositiveZerof",w),s(A,"isPrime",C),s(A,"isProbability",S),s(A,"isProbabilityf",U),s(A,"isSafeInteger",k),s(A,"isPow2Uint32",q);export{A as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index d82b9be..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nimport isEvenf from '@stdlib/math-base-assert-is-evenf';\nsetReadOnly( ns, 'isEvenf', isEvenf );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nimport isIntegerf from '@stdlib/math-base-assert-is-integerf';\nsetReadOnly( ns, 'isIntegerf', isIntegerf );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nimport isNegativeIntegerf from '@stdlib/math-base-assert-is-negative-integerf';\nsetReadOnly( ns, 'isNegativeIntegerf', isNegativeIntegerf );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nimport isNonnegativeIntegerf from '@stdlib/math-base-assert-is-nonnegative-integerf';\nsetReadOnly( ns, 'isNonnegativeIntegerf', isNonnegativeIntegerf );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nimport isOddf from '@stdlib/math-base-assert-is-oddf';\nsetReadOnly( ns, 'isOddf', isOddf );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nimport isProbabilityf from '@stdlib/math-base-assert-is-probabilityf';\nsetReadOnly( ns, 'isProbabilityf', isProbabilityf );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isEvenf","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isIntegerf","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeIntegerf","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonnegativeIntegerf","isNonPositiveFinite","isNonPositiveInteger","isOdd","isOddf","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isProbabilityf","isSafeInteger","isPow2Uint32"],"mappings":";;6mQAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,UAAAO,GAUAN,EAAAD,EAAA,WAAAQ,GAUAP,EAAAD,EAAA,YAAAS,GAUAR,EAAAD,EAAA,aAAAU,GAUAT,EAAAD,EAAA,cAAAW,GAUAV,EAAAD,EAAA,YAAAY,GAUAX,EAAAD,EAAA,aAAAa,GAUAZ,EAAAD,EAAA,QAAAc,GAUAb,EAAAD,EAAA,SAAAe,GAUAd,EAAAD,EAAA,mBAAAgB,GAUAf,EAAAD,EAAA,oBAAAiB,GAUAhB,EAAAD,EAAA,qBAAAkB,GAUAjB,EAAAD,EAAA,iBAAAmB,GAUAlB,EAAAD,EAAA,kBAAAoB,GAUAnB,EAAAD,EAAA,sBAAAqB,GAUApB,EAAAD,EAAA,uBAAAsB,GAUArB,EAAAD,EAAA,wBAAAuB,GAUAtB,EAAAD,EAAA,sBAAAwB,GAUAvB,EAAAD,EAAA,uBAAAyB,GAUAxB,EAAAD,EAAA,QAAA0B,GAUAzB,EAAAD,EAAA,SAAA2B,GAUA1B,EAAAD,EAAA,mBAAA4B,GAUA3B,EAAAD,EAAA,oBAAA6B,GAUA5B,EAAAD,EAAA,iBAAA8B,GAUA7B,EAAAD,EAAA,kBAAA+B,GAUA9B,EAAAD,EAAA,UAAAgC,GAUA/B,EAAAD,EAAA,gBAAAiC,GAUAhC,EAAAD,EAAA,iBAAAkC,GAUAjC,EAAAD,EAAA,gBAAAmC,GAUAlC,EAAAD,EAAA,eAAAoC"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index ac7cdad..0000000 --- a/stats.html +++ /dev/null @@ -1,4842 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From 0ecb0fec944cfd02f1e167a7d80b737bdc26b8a9 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 8 Feb 2026 07:30:07 +0000 Subject: [PATCH 164/190] Auto-generated commit --- .editorconfig | 180 - .eslintrc.js | 1 - .gitattributes | 66 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 821 --- .github/workflows/publish.yml | 261 - .github/workflows/test.yml | 101 - .github/workflows/test_bundles.yml | 213 - .github/workflows/test_coverage.yml | 142 - .github/workflows/test_install.yml | 94 - .github/workflows/test_published_package.yml | 115 - .gitignore | 199 - .npmignore | 229 - .npmrc | 31 - CHANGELOG.md | 476 -- CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 113 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 357 -- package.json | 121 +- stats.html | 4842 ++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 40 files changed, 4904 insertions(+), 4591 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .github/workflows/test_published_package.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index dab5d2a..0000000 --- a/.editorconfig +++ /dev/null @@ -1,180 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim. - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 1c88e69..0000000 --- a/.gitattributes +++ /dev/null @@ -1,66 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/lib/node_modules/** -linguist-vendored -linguist-generated - -# Configure directories which should *not* be included in GitHub language statistics: -/deps/** linguist-vendored -/dist/** linguist-generated -/workshops/** linguist-vendored - -benchmark/** linguist-vendored -docs/* linguist-documentation -etc/** linguist-vendored -examples/** linguist-documentation -scripts/** linguist-vendored -test/** linguist-vendored -tools/** linguist-vendored - -# Configure files which should *not* be included in GitHub language statistics: -Makefile linguist-vendored -*.mk linguist-vendored -*.jl linguist-vendored -*.py linguist-vendored -*.R linguist-vendored - -# Configure files which should be included in GitHub language statistics: -docs/types/*.d.ts -linguist-documentation diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 21386b4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/contributing/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 83d50c4..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,821 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send notification to Zulip if job fails: - - name: 'Send notification to Zulip in case of failure' - # Pin action to full length commit SHA - uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2 - if: failure() - with: - api-key: ${{ secrets.ZULIP_API_KEY }} - email: 'github-actions-bot@stdlib.zulipchat.com' - organization-url: 'https://stdlib.zulipchat.com' - to: 'workflows-standalone' - type: 'stream' - topic: ${{ github.event.repository.name }} - content: | - :cross_mark: **${{ github.workflow }}** workflow failed - - **Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }}) - **Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -156,7 +153,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -221,75 +218,75 @@ Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-evenf]: https://github.com/stdlib-js/math-base-assert-is-evenf +[@stdlib/math/base/assert/is-evenf]: https://github.com/stdlib-js/math-base-assert-is-evenf/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-integerf]: https://github.com/stdlib-js/math-base-assert-is-integerf +[@stdlib/math/base/assert/is-integerf]: https://github.com/stdlib-js/math-base-assert-is-integerf/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-integerf]: https://github.com/stdlib-js/math-base-assert-is-negative-integerf +[@stdlib/math/base/assert/is-negative-integerf]: https://github.com/stdlib-js/math-base-assert-is-negative-integerf/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integerf]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integerf +[@stdlib/math/base/assert/is-nonnegative-integerf]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integerf/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-oddf]: https://github.com/stdlib-js/math-base-assert-is-oddf +[@stdlib/math/base/assert/is-oddf]: https://github.com/stdlib-js/math-base-assert-is-oddf/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-probabilityf]: https://github.com/stdlib-js/math-base-assert-is-probabilityf +[@stdlib/math/base/assert/is-probabilityf]: https://github.com/stdlib-js/math-base-assert-is-probabilityf/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 93392a1..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isEvenf",require('@stdlib/math-base-assert-is-evenf/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isIntegerf",require('@stdlib/math-base-assert-is-integerf/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeIntegerf",require('@stdlib/math-base-assert-is-negative-integerf/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonnegativeIntegerf",require('@stdlib/math-base-assert-is-nonnegative-integerf/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isOddf",require('@stdlib/math-base-assert-is-oddf/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isProbabilityf",require('@stdlib/math-base-assert-is-probabilityf/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 553b4e9..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nsetReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nsetReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nsetReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nsetReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nsetReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nsetReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,qBAAsB,QAAS,+CAAgD,CAAE,EASlGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,wBAAyB,QAAS,kDAAmD,CAAE,EASxGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,iBAAkB,QAAS,0CAA2C,CAAE,EASzFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..495598c --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2026 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.3-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";export{default as isEvenf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.2-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.2-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";export{default as isIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";export{default as isNegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.3-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";export{default as isNonnegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";export{default as isOddf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";import E from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";import O from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.3-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";import S from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";import U from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";export{default as isProbabilityf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";import k from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";import q from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";var A={};s(A,"isEvenInt32",e),s(A,"isOddInt32",t),s(A,"isComposite",i),s(A,"isCoprime",n),s(A,"isEven",r),s(A,"isEvenf",d),s(A,"isFinite",a),s(A,"isFinitef",m),s(A,"isInfinite",o),s(A,"isInfinitef",j),s(A,"isInteger",h),s(A,"isIntegerf",v),s(A,"isnan",l),s(A,"isnanf",f),s(A,"isNegativeFinite",p),s(A,"isNegativeInteger",b),s(A,"isNegativeIntegerf",g),s(A,"isNegativeZero",x),s(A,"isNegativeZerof",c),s(A,"isNonNegativeFinite",u),s(A,"isNonNegativeInteger",I),s(A,"isNonnegativeIntegerf",N),s(A,"isNonPositiveFinite",P),s(A,"isNonPositiveInteger",F),s(A,"isOdd",y),s(A,"isOddf",z),s(A,"isPositiveFinite",Z),s(A,"isPositiveInteger",E),s(A,"isPositiveZero",O),s(A,"isPositiveZerof",w),s(A,"isPrime",C),s(A,"isProbability",S),s(A,"isProbabilityf",U),s(A,"isSafeInteger",k),s(A,"isPow2Uint32",q);export{A as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..d82b9be --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nimport isEvenf from '@stdlib/math-base-assert-is-evenf';\nsetReadOnly( ns, 'isEvenf', isEvenf );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nimport isIntegerf from '@stdlib/math-base-assert-is-integerf';\nsetReadOnly( ns, 'isIntegerf', isIntegerf );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nimport isNegativeIntegerf from '@stdlib/math-base-assert-is-negative-integerf';\nsetReadOnly( ns, 'isNegativeIntegerf', isNegativeIntegerf );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nimport isNonnegativeIntegerf from '@stdlib/math-base-assert-is-nonnegative-integerf';\nsetReadOnly( ns, 'isNonnegativeIntegerf', isNonnegativeIntegerf );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nimport isOddf from '@stdlib/math-base-assert-is-oddf';\nsetReadOnly( ns, 'isOddf', isOddf );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nimport isProbabilityf from '@stdlib/math-base-assert-is-probabilityf';\nsetReadOnly( ns, 'isProbabilityf', isProbabilityf );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isEvenf","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isIntegerf","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeIntegerf","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonnegativeIntegerf","isNonPositiveFinite","isNonPositiveInteger","isOdd","isOddf","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isProbabilityf","isSafeInteger","isPow2Uint32"],"mappings":";;6mQAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,UAAAO,GAUAN,EAAAD,EAAA,WAAAQ,GAUAP,EAAAD,EAAA,YAAAS,GAUAR,EAAAD,EAAA,aAAAU,GAUAT,EAAAD,EAAA,cAAAW,GAUAV,EAAAD,EAAA,YAAAY,GAUAX,EAAAD,EAAA,aAAAa,GAUAZ,EAAAD,EAAA,QAAAc,GAUAb,EAAAD,EAAA,SAAAe,GAUAd,EAAAD,EAAA,mBAAAgB,GAUAf,EAAAD,EAAA,oBAAAiB,GAUAhB,EAAAD,EAAA,qBAAAkB,GAUAjB,EAAAD,EAAA,iBAAAmB,GAUAlB,EAAAD,EAAA,kBAAAoB,GAUAnB,EAAAD,EAAA,sBAAAqB,GAUApB,EAAAD,EAAA,uBAAAsB,GAUArB,EAAAD,EAAA,wBAAAuB,GAUAtB,EAAAD,EAAA,sBAAAwB,GAUAvB,EAAAD,EAAA,uBAAAyB,GAUAxB,EAAAD,EAAA,QAAA0B,GAUAzB,EAAAD,EAAA,SAAA2B,GAUA1B,EAAAD,EAAA,mBAAA4B,GAUA3B,EAAAD,EAAA,oBAAA6B,GAUA5B,EAAAD,EAAA,iBAAA8B,GAUA7B,EAAAD,EAAA,kBAAA+B,GAUA9B,EAAAD,EAAA,UAAAgC,GAUA/B,EAAAD,EAAA,gBAAAiC,GAUAhC,EAAAD,EAAA,iBAAAkC,GAUAjC,EAAAD,EAAA,gBAAAmC,GAUAlC,EAAAD,EAAA,eAAAoC"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 3e4f9c3..0000000 --- a/lib/index.js +++ /dev/null @@ -1,357 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isEvenf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-evenf} -*/ -setReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integerf} -*/ -setReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integerf} -*/ -setReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonnegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf} -*/ -setReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isOddf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-oddf} -*/ -setReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isProbabilityf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probabilityf} -*/ -setReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 15c041d..1fd9df9 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.4.1", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,101 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.3.2", - "@stdlib/math-base-assert-int32-is-odd": "^0.3.2", - "@stdlib/math-base-assert-is-composite": "^0.3.2", - "@stdlib/math-base-assert-is-coprime": "^0.2.3", - "@stdlib/math-base-assert-is-even": "^0.2.5", - "@stdlib/math-base-assert-is-evenf": "^0.1.0", - "@stdlib/math-base-assert-is-finite": "^0.2.3", - "@stdlib/math-base-assert-is-finitef": "^0.2.2", - "@stdlib/math-base-assert-is-infinite": "^0.2.3", - "@stdlib/math-base-assert-is-infinitef": "^0.2.2", - "@stdlib/math-base-assert-is-integer": "^0.2.7", - "@stdlib/math-base-assert-is-integerf": "^0.1.0", - "@stdlib/math-base-assert-is-nan": "^0.2.3", - "@stdlib/math-base-assert-is-nanf": "^0.2.3", - "@stdlib/math-base-assert-is-negative-finite": "^0.3.2", - "@stdlib/math-base-assert-is-negative-integer": "^0.3.2", - "@stdlib/math-base-assert-is-negative-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.3", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.3.2", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.2", - "@stdlib/math-base-assert-is-nonnegative-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.3.2", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.2.3", - "@stdlib/math-base-assert-is-odd": "^0.3.2", - "@stdlib/math-base-assert-is-oddf": "^0.1.1", - "@stdlib/math-base-assert-is-positive-finite": "^0.3.2", - "@stdlib/math-base-assert-is-positive-integer": "^0.3.2", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.3", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.3", - "@stdlib/math-base-assert-is-prime": "^0.3.2", - "@stdlib/math-base-assert-is-probability": "^0.2.4", - "@stdlib/math-base-assert-is-probabilityf": "^0.1.1", - "@stdlib/math-base-assert-is-safe-integer": "^0.3.2", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.2", - "@stdlib/utils-define-read-only-property": "^0.2.3" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.3", - "@stdlib/boolean-ctor": "^0.2.3", - "@stdlib/console-log-each-map": "^0.1.0", - "@stdlib/constants-float32-max": "^0.2.3", - "@stdlib/constants-float32-ninf": "^0.2.2", - "@stdlib/constants-float32-pinf": "^0.2.2", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.3", - "@stdlib/constants-float64-max": "^0.2.3", - "@stdlib/constants-float64-max-safe-integer": "^0.2.3", - "@stdlib/constants-float64-min-safe-integer": "^0.2.3", - "@stdlib/constants-float64-ninf": "^0.2.3", - "@stdlib/constants-float64-pinf": "^0.2.3", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.3", - "@stdlib/constants-int32-max": "^0.3.1", - "@stdlib/datasets-primes-100k": "^0.2.3", - "@stdlib/math-base-special-floor": "^0.2.4", - "@stdlib/math-base-special-floorf": "^0.2.3", - "@stdlib/math-base-special-gcd": "^0.3.2", - "@stdlib/math-base-special-log10": "^0.3.1", - "@stdlib/math-base-special-log2": "^0.3.1", - "@stdlib/math-base-special-pow": "^0.3.1", - "@stdlib/math-base-special-round": "^0.3.1", - "@stdlib/math-base-special-roundf": "^0.1.0", - "@stdlib/math-base-special-sqrt": "^0.2.3", - "@stdlib/math-base-special-trunc": "^0.2.3", - "@stdlib/math-base-special-truncf": "^0.2.3", - "@stdlib/number-ctor": "^0.2.3", - "@stdlib/number-float64-base-to-float32": "^0.2.3", - "@stdlib/random-array-discrete-uniform": "^0.2.1", - "@stdlib/random-array-uniform": "^0.2.1", - "@stdlib/random-base-discrete-uniform": "^0.2.1", - "@stdlib/random-base-randu": "^0.2.2", - "@stdlib/random-base-uniform": "^0.2.2", - "@stdlib/error-tools-fmtprodmsg": "^0.2.3", - "@stdlib/utils-keys": "^0.2.3", - "@stdlib/utils-try-require": "^0.2.3", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.3" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..19e0864 --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index ecdba25..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.strictEqual( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 77cadb862034f8f19318913c886ed05435d61c7e Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 8 Feb 2026 08:01:06 +0000 Subject: [PATCH 165/190] Update README.md for ESM bundle v0.4.1 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f278870..68d9825 100644 --- a/README.md +++ b/README.md @@ -42,13 +42,13 @@ limitations under the License. ## Usage ```javascript -import ns from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@esm/index.mjs'; +import ns from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@v0.4.1-esm/index.mjs'; ``` You can also import the following named exports from the package: ```javascript -import { isComposite, isCoprime, isEven, isEvenInt32, isEvenf, isFinite, isFinitef, isInfinite, isInfinitef, isInteger, isIntegerf, isNegativeFinite, isNegativeInteger, isNegativeIntegerf, isNegativeZero, isNegativeZerof, isNonNegativeFinite, isNonNegativeInteger, isNonPositiveFinite, isNonPositiveInteger, isNonnegativeIntegerf, isOdd, isOddInt32, isOddf, isPositiveFinite, isPositiveInteger, isPositiveZero, isPositiveZerof, isPow2Uint32, isPrime, isProbability, isProbabilityf, isSafeInteger, isnan, isnanf } from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@esm/index.mjs'; +import { isComposite, isCoprime, isEven, isEvenInt32, isEvenf, isFinite, isFinitef, isInfinite, isInfinitef, isInteger, isIntegerf, isNegativeFinite, isNegativeInteger, isNegativeIntegerf, isNegativeZero, isNegativeZerof, isNonNegativeFinite, isNonNegativeInteger, isNonPositiveFinite, isNonPositiveInteger, isNonnegativeIntegerf, isOdd, isOddInt32, isOddf, isPositiveFinite, isPositiveInteger, isPositiveZero, isPositiveZerof, isPow2Uint32, isPrime, isProbability, isProbabilityf, isSafeInteger, isnan, isnanf } from 'https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert@v0.4.1-esm/index.mjs'; ``` #### ns @@ -123,7 +123,7 @@ var o = ns; - - - - From bdc8ef8bce07c60d6d98f6465eadacea19afcee7 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 9 Feb 2026 04:20:21 +0000 Subject: [PATCH 169/190] Auto-generated commit --- .editorconfig | 180 - .eslintrc.js | 1 - .gitattributes | 66 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 821 --- .github/workflows/publish.yml | 261 - .github/workflows/test.yml | 101 - .github/workflows/test_bundles.yml | 213 - .github/workflows/test_coverage.yml | 142 - .github/workflows/test_install.yml | 94 - .github/workflows/test_published_package.yml | 115 - .gitignore | 199 - .npmignore | 229 - .npmrc | 31 - CHANGELOG.md | 476 -- CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 113 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 357 -- package.json | 121 +- stats.html | 4842 ++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 41 files changed, 4904 insertions(+), 4592 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .github/workflows/test_published_package.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index dab5d2a..0000000 --- a/.editorconfig +++ /dev/null @@ -1,180 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim. - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 1c88e69..0000000 --- a/.gitattributes +++ /dev/null @@ -1,66 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/lib/node_modules/** -linguist-vendored -linguist-generated - -# Configure directories which should *not* be included in GitHub language statistics: -/deps/** linguist-vendored -/dist/** linguist-generated -/workshops/** linguist-vendored - -benchmark/** linguist-vendored -docs/* linguist-documentation -etc/** linguist-vendored -examples/** linguist-documentation -scripts/** linguist-vendored -test/** linguist-vendored -tools/** linguist-vendored - -# Configure files which should *not* be included in GitHub language statistics: -Makefile linguist-vendored -*.mk linguist-vendored -*.jl linguist-vendored -*.py linguist-vendored -*.R linguist-vendored - -# Configure files which should be included in GitHub language statistics: -docs/types/*.d.ts -linguist-documentation diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index c556ea3..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2026-02-09T02:27:56.830Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 21386b4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/contributing/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 83d50c4..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,821 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send notification to Zulip if job fails: - - name: 'Send notification to Zulip in case of failure' - # Pin action to full length commit SHA - uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2 - if: failure() - with: - api-key: ${{ secrets.ZULIP_API_KEY }} - email: 'github-actions-bot@stdlib.zulipchat.com' - organization-url: 'https://stdlib.zulipchat.com' - to: 'workflows-standalone' - type: 'stream' - topic: ${{ github.event.repository.name }} - content: | - :cross_mark: **${{ github.workflow }}** workflow failed - - **Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }}) - **Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -156,7 +153,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -221,75 +218,75 @@ Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-evenf]: https://github.com/stdlib-js/math-base-assert-is-evenf +[@stdlib/math/base/assert/is-evenf]: https://github.com/stdlib-js/math-base-assert-is-evenf/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-integerf]: https://github.com/stdlib-js/math-base-assert-is-integerf +[@stdlib/math/base/assert/is-integerf]: https://github.com/stdlib-js/math-base-assert-is-integerf/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-integerf]: https://github.com/stdlib-js/math-base-assert-is-negative-integerf +[@stdlib/math/base/assert/is-negative-integerf]: https://github.com/stdlib-js/math-base-assert-is-negative-integerf/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integerf]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integerf +[@stdlib/math/base/assert/is-nonnegative-integerf]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integerf/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-oddf]: https://github.com/stdlib-js/math-base-assert-is-oddf +[@stdlib/math/base/assert/is-oddf]: https://github.com/stdlib-js/math-base-assert-is-oddf/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-probabilityf]: https://github.com/stdlib-js/math-base-assert-is-probabilityf +[@stdlib/math/base/assert/is-probabilityf]: https://github.com/stdlib-js/math-base-assert-is-probabilityf/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 93392a1..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isEvenf",require('@stdlib/math-base-assert-is-evenf/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isIntegerf",require('@stdlib/math-base-assert-is-integerf/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeIntegerf",require('@stdlib/math-base-assert-is-negative-integerf/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonnegativeIntegerf",require('@stdlib/math-base-assert-is-nonnegative-integerf/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isOddf",require('@stdlib/math-base-assert-is-oddf/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isProbabilityf",require('@stdlib/math-base-assert-is-probabilityf/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 553b4e9..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nsetReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nsetReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nsetReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nsetReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nsetReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nsetReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,qBAAsB,QAAS,+CAAgD,CAAE,EASlGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,wBAAyB,QAAS,kDAAmD,CAAE,EASxGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,iBAAkB,QAAS,0CAA2C,CAAE,EASzFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..bcc8e6d --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2026 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.3-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";export{default as isEvenf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";export{default as isIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";export{default as isNegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";export{default as isNonnegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";export{default as isOddf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";import E from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";import O from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";import S from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";import U from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";export{default as isProbabilityf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";import k from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";import q from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";var A={};s(A,"isEvenInt32",e),s(A,"isOddInt32",t),s(A,"isComposite",i),s(A,"isCoprime",n),s(A,"isEven",r),s(A,"isEvenf",d),s(A,"isFinite",a),s(A,"isFinitef",m),s(A,"isInfinite",o),s(A,"isInfinitef",j),s(A,"isInteger",h),s(A,"isIntegerf",v),s(A,"isnan",l),s(A,"isnanf",f),s(A,"isNegativeFinite",p),s(A,"isNegativeInteger",b),s(A,"isNegativeIntegerf",g),s(A,"isNegativeZero",x),s(A,"isNegativeZerof",c),s(A,"isNonNegativeFinite",u),s(A,"isNonNegativeInteger",I),s(A,"isNonnegativeIntegerf",N),s(A,"isNonPositiveFinite",P),s(A,"isNonPositiveInteger",F),s(A,"isOdd",y),s(A,"isOddf",z),s(A,"isPositiveFinite",Z),s(A,"isPositiveInteger",E),s(A,"isPositiveZero",O),s(A,"isPositiveZerof",w),s(A,"isPrime",C),s(A,"isProbability",S),s(A,"isProbabilityf",U),s(A,"isSafeInteger",k),s(A,"isPow2Uint32",q);export{A as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..d82b9be --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nimport isEvenf from '@stdlib/math-base-assert-is-evenf';\nsetReadOnly( ns, 'isEvenf', isEvenf );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nimport isIntegerf from '@stdlib/math-base-assert-is-integerf';\nsetReadOnly( ns, 'isIntegerf', isIntegerf );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nimport isNegativeIntegerf from '@stdlib/math-base-assert-is-negative-integerf';\nsetReadOnly( ns, 'isNegativeIntegerf', isNegativeIntegerf );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nimport isNonnegativeIntegerf from '@stdlib/math-base-assert-is-nonnegative-integerf';\nsetReadOnly( ns, 'isNonnegativeIntegerf', isNonnegativeIntegerf );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nimport isOddf from '@stdlib/math-base-assert-is-oddf';\nsetReadOnly( ns, 'isOddf', isOddf );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nimport isProbabilityf from '@stdlib/math-base-assert-is-probabilityf';\nsetReadOnly( ns, 'isProbabilityf', isProbabilityf );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isEvenf","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isIntegerf","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeIntegerf","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonnegativeIntegerf","isNonPositiveFinite","isNonPositiveInteger","isOdd","isOddf","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isProbabilityf","isSafeInteger","isPow2Uint32"],"mappings":";;6mQAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,UAAAO,GAUAN,EAAAD,EAAA,WAAAQ,GAUAP,EAAAD,EAAA,YAAAS,GAUAR,EAAAD,EAAA,aAAAU,GAUAT,EAAAD,EAAA,cAAAW,GAUAV,EAAAD,EAAA,YAAAY,GAUAX,EAAAD,EAAA,aAAAa,GAUAZ,EAAAD,EAAA,QAAAc,GAUAb,EAAAD,EAAA,SAAAe,GAUAd,EAAAD,EAAA,mBAAAgB,GAUAf,EAAAD,EAAA,oBAAAiB,GAUAhB,EAAAD,EAAA,qBAAAkB,GAUAjB,EAAAD,EAAA,iBAAAmB,GAUAlB,EAAAD,EAAA,kBAAAoB,GAUAnB,EAAAD,EAAA,sBAAAqB,GAUApB,EAAAD,EAAA,uBAAAsB,GAUArB,EAAAD,EAAA,wBAAAuB,GAUAtB,EAAAD,EAAA,sBAAAwB,GAUAvB,EAAAD,EAAA,uBAAAyB,GAUAxB,EAAAD,EAAA,QAAA0B,GAUAzB,EAAAD,EAAA,SAAA2B,GAUA1B,EAAAD,EAAA,mBAAA4B,GAUA3B,EAAAD,EAAA,oBAAA6B,GAUA5B,EAAAD,EAAA,iBAAA8B,GAUA7B,EAAAD,EAAA,kBAAA+B,GAUA9B,EAAAD,EAAA,UAAAgC,GAUA/B,EAAAD,EAAA,gBAAAiC,GAUAhC,EAAAD,EAAA,iBAAAkC,GAUAjC,EAAAD,EAAA,gBAAAmC,GAUAlC,EAAAD,EAAA,eAAAoC"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 3e4f9c3..0000000 --- a/lib/index.js +++ /dev/null @@ -1,357 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isEvenf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-evenf} -*/ -setReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integerf} -*/ -setReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integerf} -*/ -setReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonnegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf} -*/ -setReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isOddf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-oddf} -*/ -setReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isProbabilityf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probabilityf} -*/ -setReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 575bd22..1fd9df9 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.4.1", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,101 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.3.2", - "@stdlib/math-base-assert-int32-is-odd": "^0.3.2", - "@stdlib/math-base-assert-is-composite": "^0.3.2", - "@stdlib/math-base-assert-is-coprime": "^0.2.3", - "@stdlib/math-base-assert-is-even": "^0.2.5", - "@stdlib/math-base-assert-is-evenf": "^0.1.1", - "@stdlib/math-base-assert-is-finite": "^0.2.3", - "@stdlib/math-base-assert-is-finitef": "^0.2.3", - "@stdlib/math-base-assert-is-infinite": "^0.2.3", - "@stdlib/math-base-assert-is-infinitef": "^0.2.3", - "@stdlib/math-base-assert-is-integer": "^0.2.7", - "@stdlib/math-base-assert-is-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-nan": "^0.2.3", - "@stdlib/math-base-assert-is-nanf": "^0.2.3", - "@stdlib/math-base-assert-is-negative-finite": "^0.3.2", - "@stdlib/math-base-assert-is-negative-integer": "^0.3.2", - "@stdlib/math-base-assert-is-negative-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.3", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.4", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.3.2", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.2", - "@stdlib/math-base-assert-is-nonnegative-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.3.2", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.2.3", - "@stdlib/math-base-assert-is-odd": "^0.3.2", - "@stdlib/math-base-assert-is-oddf": "^0.1.1", - "@stdlib/math-base-assert-is-positive-finite": "^0.3.2", - "@stdlib/math-base-assert-is-positive-integer": "^0.3.2", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.3", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.4", - "@stdlib/math-base-assert-is-prime": "^0.3.2", - "@stdlib/math-base-assert-is-probability": "^0.2.4", - "@stdlib/math-base-assert-is-probabilityf": "^0.1.1", - "@stdlib/math-base-assert-is-safe-integer": "^0.3.2", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.2", - "@stdlib/utils-define-read-only-property": "^0.2.3" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.3", - "@stdlib/boolean-ctor": "^0.2.3", - "@stdlib/console-log-each-map": "^0.1.1", - "@stdlib/constants-float32-max": "^0.2.3", - "@stdlib/constants-float32-ninf": "^0.2.3", - "@stdlib/constants-float32-pinf": "^0.2.3", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.3", - "@stdlib/constants-float64-max": "^0.2.3", - "@stdlib/constants-float64-max-safe-integer": "^0.2.3", - "@stdlib/constants-float64-min-safe-integer": "^0.2.3", - "@stdlib/constants-float64-ninf": "^0.2.3", - "@stdlib/constants-float64-pinf": "^0.2.3", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.3", - "@stdlib/constants-int32-max": "^0.3.1", - "@stdlib/datasets-primes-100k": "^0.2.3", - "@stdlib/math-base-special-floor": "^0.2.4", - "@stdlib/math-base-special-floorf": "^0.2.3", - "@stdlib/math-base-special-gcd": "^0.3.2", - "@stdlib/math-base-special-log10": "^0.3.1", - "@stdlib/math-base-special-log2": "^0.3.1", - "@stdlib/math-base-special-pow": "^0.3.1", - "@stdlib/math-base-special-round": "^0.3.1", - "@stdlib/math-base-special-roundf": "^0.1.1", - "@stdlib/math-base-special-sqrt": "^0.2.3", - "@stdlib/math-base-special-trunc": "^0.2.3", - "@stdlib/math-base-special-truncf": "^0.2.3", - "@stdlib/number-ctor": "^0.2.3", - "@stdlib/number-float64-base-to-float32": "^0.2.3", - "@stdlib/random-array-discrete-uniform": "^0.2.2", - "@stdlib/random-array-uniform": "^0.2.2", - "@stdlib/random-base-discrete-uniform": "^0.2.2", - "@stdlib/random-base-randu": "^0.2.3", - "@stdlib/random-base-uniform": "^0.2.3", - "@stdlib/error-tools-fmtprodmsg": "^0.2.3", - "@stdlib/utils-keys": "^0.2.3", - "@stdlib/utils-try-require": "^0.2.3", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.3" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..74aed14 --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index ecdba25..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.strictEqual( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 6329fd5ba3b2ff451b57fc40eefa61c7ba7b8c9b Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 9 Mar 2026 02:56:09 +0000 Subject: [PATCH 170/190] Transform error messages --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a744605..575bd22 100644 --- a/package.json +++ b/package.json @@ -107,7 +107,7 @@ "@stdlib/random-base-discrete-uniform": "^0.2.2", "@stdlib/random-base-randu": "^0.2.3", "@stdlib/random-base-uniform": "^0.2.3", - "@stdlib/string-format": "^0.2.3", + "@stdlib/error-tools-fmtprodmsg": "^0.2.3", "@stdlib/utils-keys": "^0.2.3", "@stdlib/utils-try-require": "^0.2.3", "tape": "git+https://github.com/kgryte/tape.git#fix/globby", From 2b19a8d355fc84b3d13b8e0df7f3b9e297b18520 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 9 Mar 2026 04:29:13 +0000 Subject: [PATCH 171/190] Remove files --- index.d.ts | 856 --------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4842 ------------------------------------------------- 4 files changed, 5703 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index d9ae8ad..0000000 --- a/index.d.ts +++ /dev/null @@ -1,856 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isEvenf = require( '@stdlib/math-base-assert-is-evenf' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isIntegerf = require( '@stdlib/math-base-assert-is-integerf' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeIntegerf = require( '@stdlib/math-base-assert-is-negative-integerf' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonnegativeIntegerf = require( '@stdlib/math-base-assert-is-nonnegative-integerf' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isOddf = require( '@stdlib/math-base-assert-is-oddf' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isProbabilityf = require( '@stdlib/math-base-assert-is-probabilityf' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a finite single-precision floating-point number is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEvenf( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEvenf( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEvenf( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEvenf( NaN ); - * // returns false - */ - isEvenf: typeof isEvenf; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a finite single-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isIntegerf( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isIntegerf( 3.14 ); - * // returns false - */ - isIntegerf: typeof isIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a finite single-precision floating-point number is a negative integer. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeIntegerf( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeIntegerf( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeIntegerf( 10.0 ); - * // returns false - */ - isNegativeIntegerf: typeof isNegativeIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a finite single-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonnegativeIntegerf( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonnegativeIntegerf( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonnegativeIntegerf( -10.0 ); - * // returns false - */ - isNonnegativeIntegerf: typeof isNonnegativeIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a finite single-precision floating-point number is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOddf( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOddf( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOddf( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOddf( NaN ); - * // returns false - */ - isOddf: typeof isOddf; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a single-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbabilityf( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbabilityf( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbabilityf( NaN ); - * // returns false - */ - isProbabilityf: typeof isProbabilityf; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index bcc8e6d..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2026 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.3-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";export{default as isEvenf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";export{default as isIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";export{default as isNegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";export{default as isNonnegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";export{default as isOddf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";import E from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";import O from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";import S from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";import U from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";export{default as isProbabilityf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";import k from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";import q from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";var A={};s(A,"isEvenInt32",e),s(A,"isOddInt32",t),s(A,"isComposite",i),s(A,"isCoprime",n),s(A,"isEven",r),s(A,"isEvenf",d),s(A,"isFinite",a),s(A,"isFinitef",m),s(A,"isInfinite",o),s(A,"isInfinitef",j),s(A,"isInteger",h),s(A,"isIntegerf",v),s(A,"isnan",l),s(A,"isnanf",f),s(A,"isNegativeFinite",p),s(A,"isNegativeInteger",b),s(A,"isNegativeIntegerf",g),s(A,"isNegativeZero",x),s(A,"isNegativeZerof",c),s(A,"isNonNegativeFinite",u),s(A,"isNonNegativeInteger",I),s(A,"isNonnegativeIntegerf",N),s(A,"isNonPositiveFinite",P),s(A,"isNonPositiveInteger",F),s(A,"isOdd",y),s(A,"isOddf",z),s(A,"isPositiveFinite",Z),s(A,"isPositiveInteger",E),s(A,"isPositiveZero",O),s(A,"isPositiveZerof",w),s(A,"isPrime",C),s(A,"isProbability",S),s(A,"isProbabilityf",U),s(A,"isSafeInteger",k),s(A,"isPow2Uint32",q);export{A as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index d82b9be..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nimport isEvenf from '@stdlib/math-base-assert-is-evenf';\nsetReadOnly( ns, 'isEvenf', isEvenf );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nimport isIntegerf from '@stdlib/math-base-assert-is-integerf';\nsetReadOnly( ns, 'isIntegerf', isIntegerf );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nimport isNegativeIntegerf from '@stdlib/math-base-assert-is-negative-integerf';\nsetReadOnly( ns, 'isNegativeIntegerf', isNegativeIntegerf );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nimport isNonnegativeIntegerf from '@stdlib/math-base-assert-is-nonnegative-integerf';\nsetReadOnly( ns, 'isNonnegativeIntegerf', isNonnegativeIntegerf );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nimport isOddf from '@stdlib/math-base-assert-is-oddf';\nsetReadOnly( ns, 'isOddf', isOddf );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nimport isProbabilityf from '@stdlib/math-base-assert-is-probabilityf';\nsetReadOnly( ns, 'isProbabilityf', isProbabilityf );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isEvenf","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isIntegerf","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeIntegerf","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonnegativeIntegerf","isNonPositiveFinite","isNonPositiveInteger","isOdd","isOddf","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isProbabilityf","isSafeInteger","isPow2Uint32"],"mappings":";;6mQAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,UAAAO,GAUAN,EAAAD,EAAA,WAAAQ,GAUAP,EAAAD,EAAA,YAAAS,GAUAR,EAAAD,EAAA,aAAAU,GAUAT,EAAAD,EAAA,cAAAW,GAUAV,EAAAD,EAAA,YAAAY,GAUAX,EAAAD,EAAA,aAAAa,GAUAZ,EAAAD,EAAA,QAAAc,GAUAb,EAAAD,EAAA,SAAAe,GAUAd,EAAAD,EAAA,mBAAAgB,GAUAf,EAAAD,EAAA,oBAAAiB,GAUAhB,EAAAD,EAAA,qBAAAkB,GAUAjB,EAAAD,EAAA,iBAAAmB,GAUAlB,EAAAD,EAAA,kBAAAoB,GAUAnB,EAAAD,EAAA,sBAAAqB,GAUApB,EAAAD,EAAA,uBAAAsB,GAUArB,EAAAD,EAAA,wBAAAuB,GAUAtB,EAAAD,EAAA,sBAAAwB,GAUAvB,EAAAD,EAAA,uBAAAyB,GAUAxB,EAAAD,EAAA,QAAA0B,GAUAzB,EAAAD,EAAA,SAAA2B,GAUA1B,EAAAD,EAAA,mBAAA4B,GAUA3B,EAAAD,EAAA,oBAAA6B,GAUA5B,EAAAD,EAAA,iBAAA8B,GAUA7B,EAAAD,EAAA,kBAAA+B,GAUA9B,EAAAD,EAAA,UAAAgC,GAUA/B,EAAAD,EAAA,gBAAAiC,GAUAhC,EAAAD,EAAA,iBAAAkC,GAUAjC,EAAAD,EAAA,gBAAAmC,GAUAlC,EAAAD,EAAA,eAAAoC"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 74aed14..0000000 --- a/stats.html +++ /dev/null @@ -1,4842 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From 4e779a119d8c0d512b21f2b9cf41b3401d17b276 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 9 Mar 2026 04:29:45 +0000 Subject: [PATCH 172/190] Auto-generated commit --- .editorconfig | 180 - .eslintrc.js | 1 - .gitattributes | 66 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 821 --- .github/workflows/publish.yml | 261 - .github/workflows/test.yml | 101 - .github/workflows/test_bundles.yml | 213 - .github/workflows/test_coverage.yml | 142 - .github/workflows/test_install.yml | 94 - .github/workflows/test_published_package.yml | 115 - .gitignore | 199 - .npmignore | 229 - .npmrc | 31 - CHANGELOG.md | 512 -- CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 113 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 357 -- package.json | 121 +- stats.html | 4842 ++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 41 files changed, 4904 insertions(+), 4628 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .github/workflows/test_published_package.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index dab5d2a..0000000 --- a/.editorconfig +++ /dev/null @@ -1,180 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim. - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 1c88e69..0000000 --- a/.gitattributes +++ /dev/null @@ -1,66 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/lib/node_modules/** -linguist-vendored -linguist-generated - -# Configure directories which should *not* be included in GitHub language statistics: -/deps/** linguist-vendored -/dist/** linguist-generated -/workshops/** linguist-vendored - -benchmark/** linguist-vendored -docs/* linguist-documentation -etc/** linguist-vendored -examples/** linguist-documentation -scripts/** linguist-vendored -test/** linguist-vendored -tools/** linguist-vendored - -# Configure files which should *not* be included in GitHub language statistics: -Makefile linguist-vendored -*.mk linguist-vendored -*.jl linguist-vendored -*.py linguist-vendored -*.R linguist-vendored - -# Configure files which should be included in GitHub language statistics: -docs/types/*.d.ts -linguist-documentation diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 3472564..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2026-03-09T02:16:46.011Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 21386b4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/contributing/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 83d50c4..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,821 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send notification to Zulip if job fails: - - name: 'Send notification to Zulip in case of failure' - # Pin action to full length commit SHA - uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2 - if: failure() - with: - api-key: ${{ secrets.ZULIP_API_KEY }} - email: 'github-actions-bot@stdlib.zulipchat.com' - organization-url: 'https://stdlib.zulipchat.com' - to: 'workflows-standalone' - type: 'stream' - topic: ${{ github.event.repository.name }} - content: | - :cross_mark: **${{ github.workflow }}** workflow failed - - **Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }}) - **Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -156,7 +153,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -221,75 +218,75 @@ Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-evenf]: https://github.com/stdlib-js/math-base-assert-is-evenf +[@stdlib/math/base/assert/is-evenf]: https://github.com/stdlib-js/math-base-assert-is-evenf/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-integerf]: https://github.com/stdlib-js/math-base-assert-is-integerf +[@stdlib/math/base/assert/is-integerf]: https://github.com/stdlib-js/math-base-assert-is-integerf/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-integerf]: https://github.com/stdlib-js/math-base-assert-is-negative-integerf +[@stdlib/math/base/assert/is-negative-integerf]: https://github.com/stdlib-js/math-base-assert-is-negative-integerf/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integerf]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integerf +[@stdlib/math/base/assert/is-nonnegative-integerf]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integerf/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-oddf]: https://github.com/stdlib-js/math-base-assert-is-oddf +[@stdlib/math/base/assert/is-oddf]: https://github.com/stdlib-js/math-base-assert-is-oddf/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-probabilityf]: https://github.com/stdlib-js/math-base-assert-is-probabilityf +[@stdlib/math/base/assert/is-probabilityf]: https://github.com/stdlib-js/math-base-assert-is-probabilityf/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 93392a1..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isEvenf",require('@stdlib/math-base-assert-is-evenf/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isIntegerf",require('@stdlib/math-base-assert-is-integerf/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeIntegerf",require('@stdlib/math-base-assert-is-negative-integerf/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonnegativeIntegerf",require('@stdlib/math-base-assert-is-nonnegative-integerf/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isOddf",require('@stdlib/math-base-assert-is-oddf/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isProbabilityf",require('@stdlib/math-base-assert-is-probabilityf/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 553b4e9..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nsetReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nsetReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nsetReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nsetReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nsetReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nsetReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,qBAAsB,QAAS,+CAAgD,CAAE,EASlGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,wBAAyB,QAAS,kDAAmD,CAAE,EASxGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,iBAAkB,QAAS,0CAA2C,CAAE,EASzFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..bcc8e6d --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2026 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.3-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";export{default as isEvenf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";export{default as isIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";export{default as isNegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";export{default as isNonnegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";export{default as isOddf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";import E from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";import O from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";import S from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";import U from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";export{default as isProbabilityf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";import k from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";import q from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";var A={};s(A,"isEvenInt32",e),s(A,"isOddInt32",t),s(A,"isComposite",i),s(A,"isCoprime",n),s(A,"isEven",r),s(A,"isEvenf",d),s(A,"isFinite",a),s(A,"isFinitef",m),s(A,"isInfinite",o),s(A,"isInfinitef",j),s(A,"isInteger",h),s(A,"isIntegerf",v),s(A,"isnan",l),s(A,"isnanf",f),s(A,"isNegativeFinite",p),s(A,"isNegativeInteger",b),s(A,"isNegativeIntegerf",g),s(A,"isNegativeZero",x),s(A,"isNegativeZerof",c),s(A,"isNonNegativeFinite",u),s(A,"isNonNegativeInteger",I),s(A,"isNonnegativeIntegerf",N),s(A,"isNonPositiveFinite",P),s(A,"isNonPositiveInteger",F),s(A,"isOdd",y),s(A,"isOddf",z),s(A,"isPositiveFinite",Z),s(A,"isPositiveInteger",E),s(A,"isPositiveZero",O),s(A,"isPositiveZerof",w),s(A,"isPrime",C),s(A,"isProbability",S),s(A,"isProbabilityf",U),s(A,"isSafeInteger",k),s(A,"isPow2Uint32",q);export{A as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..d82b9be --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nimport isEvenf from '@stdlib/math-base-assert-is-evenf';\nsetReadOnly( ns, 'isEvenf', isEvenf );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nimport isIntegerf from '@stdlib/math-base-assert-is-integerf';\nsetReadOnly( ns, 'isIntegerf', isIntegerf );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nimport isNegativeIntegerf from '@stdlib/math-base-assert-is-negative-integerf';\nsetReadOnly( ns, 'isNegativeIntegerf', isNegativeIntegerf );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nimport isNonnegativeIntegerf from '@stdlib/math-base-assert-is-nonnegative-integerf';\nsetReadOnly( ns, 'isNonnegativeIntegerf', isNonnegativeIntegerf );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nimport isOddf from '@stdlib/math-base-assert-is-oddf';\nsetReadOnly( ns, 'isOddf', isOddf );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nimport isProbabilityf from '@stdlib/math-base-assert-is-probabilityf';\nsetReadOnly( ns, 'isProbabilityf', isProbabilityf );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isEvenf","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isIntegerf","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeIntegerf","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonnegativeIntegerf","isNonPositiveFinite","isNonPositiveInteger","isOdd","isOddf","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isProbabilityf","isSafeInteger","isPow2Uint32"],"mappings":";;6mQAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,UAAAO,GAUAN,EAAAD,EAAA,WAAAQ,GAUAP,EAAAD,EAAA,YAAAS,GAUAR,EAAAD,EAAA,aAAAU,GAUAT,EAAAD,EAAA,cAAAW,GAUAV,EAAAD,EAAA,YAAAY,GAUAX,EAAAD,EAAA,aAAAa,GAUAZ,EAAAD,EAAA,QAAAc,GAUAb,EAAAD,EAAA,SAAAe,GAUAd,EAAAD,EAAA,mBAAAgB,GAUAf,EAAAD,EAAA,oBAAAiB,GAUAhB,EAAAD,EAAA,qBAAAkB,GAUAjB,EAAAD,EAAA,iBAAAmB,GAUAlB,EAAAD,EAAA,kBAAAoB,GAUAnB,EAAAD,EAAA,sBAAAqB,GAUApB,EAAAD,EAAA,uBAAAsB,GAUArB,EAAAD,EAAA,wBAAAuB,GAUAtB,EAAAD,EAAA,sBAAAwB,GAUAvB,EAAAD,EAAA,uBAAAyB,GAUAxB,EAAAD,EAAA,QAAA0B,GAUAzB,EAAAD,EAAA,SAAA2B,GAUA1B,EAAAD,EAAA,mBAAA4B,GAUA3B,EAAAD,EAAA,oBAAA6B,GAUA5B,EAAAD,EAAA,iBAAA8B,GAUA7B,EAAAD,EAAA,kBAAA+B,GAUA9B,EAAAD,EAAA,UAAAgC,GAUA/B,EAAAD,EAAA,gBAAAiC,GAUAhC,EAAAD,EAAA,iBAAAkC,GAUAjC,EAAAD,EAAA,gBAAAmC,GAUAlC,EAAAD,EAAA,eAAAoC"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 3e4f9c3..0000000 --- a/lib/index.js +++ /dev/null @@ -1,357 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isEvenf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-evenf} -*/ -setReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integerf} -*/ -setReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integerf} -*/ -setReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonnegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf} -*/ -setReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isOddf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-oddf} -*/ -setReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isProbabilityf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probabilityf} -*/ -setReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 575bd22..1fd9df9 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.4.1", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,101 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.3.2", - "@stdlib/math-base-assert-int32-is-odd": "^0.3.2", - "@stdlib/math-base-assert-is-composite": "^0.3.2", - "@stdlib/math-base-assert-is-coprime": "^0.2.3", - "@stdlib/math-base-assert-is-even": "^0.2.5", - "@stdlib/math-base-assert-is-evenf": "^0.1.1", - "@stdlib/math-base-assert-is-finite": "^0.2.3", - "@stdlib/math-base-assert-is-finitef": "^0.2.3", - "@stdlib/math-base-assert-is-infinite": "^0.2.3", - "@stdlib/math-base-assert-is-infinitef": "^0.2.3", - "@stdlib/math-base-assert-is-integer": "^0.2.7", - "@stdlib/math-base-assert-is-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-nan": "^0.2.3", - "@stdlib/math-base-assert-is-nanf": "^0.2.3", - "@stdlib/math-base-assert-is-negative-finite": "^0.3.2", - "@stdlib/math-base-assert-is-negative-integer": "^0.3.2", - "@stdlib/math-base-assert-is-negative-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.3", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.4", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.3.2", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.2", - "@stdlib/math-base-assert-is-nonnegative-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.3.2", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.2.3", - "@stdlib/math-base-assert-is-odd": "^0.3.2", - "@stdlib/math-base-assert-is-oddf": "^0.1.1", - "@stdlib/math-base-assert-is-positive-finite": "^0.3.2", - "@stdlib/math-base-assert-is-positive-integer": "^0.3.2", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.3", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.4", - "@stdlib/math-base-assert-is-prime": "^0.3.2", - "@stdlib/math-base-assert-is-probability": "^0.2.4", - "@stdlib/math-base-assert-is-probabilityf": "^0.1.1", - "@stdlib/math-base-assert-is-safe-integer": "^0.3.2", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.2", - "@stdlib/utils-define-read-only-property": "^0.2.3" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.3", - "@stdlib/boolean-ctor": "^0.2.3", - "@stdlib/console-log-each-map": "^0.1.1", - "@stdlib/constants-float32-max": "^0.2.3", - "@stdlib/constants-float32-ninf": "^0.2.3", - "@stdlib/constants-float32-pinf": "^0.2.3", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.3", - "@stdlib/constants-float64-max": "^0.2.3", - "@stdlib/constants-float64-max-safe-integer": "^0.2.3", - "@stdlib/constants-float64-min-safe-integer": "^0.2.3", - "@stdlib/constants-float64-ninf": "^0.2.3", - "@stdlib/constants-float64-pinf": "^0.2.3", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.3", - "@stdlib/constants-int32-max": "^0.3.1", - "@stdlib/datasets-primes-100k": "^0.2.3", - "@stdlib/math-base-special-floor": "^0.2.4", - "@stdlib/math-base-special-floorf": "^0.2.3", - "@stdlib/math-base-special-gcd": "^0.3.2", - "@stdlib/math-base-special-log10": "^0.3.1", - "@stdlib/math-base-special-log2": "^0.3.1", - "@stdlib/math-base-special-pow": "^0.3.1", - "@stdlib/math-base-special-round": "^0.3.1", - "@stdlib/math-base-special-roundf": "^0.1.1", - "@stdlib/math-base-special-sqrt": "^0.2.3", - "@stdlib/math-base-special-trunc": "^0.2.3", - "@stdlib/math-base-special-truncf": "^0.2.3", - "@stdlib/number-ctor": "^0.2.3", - "@stdlib/number-float64-base-to-float32": "^0.2.3", - "@stdlib/random-array-discrete-uniform": "^0.2.2", - "@stdlib/random-array-uniform": "^0.2.2", - "@stdlib/random-base-discrete-uniform": "^0.2.2", - "@stdlib/random-base-randu": "^0.2.3", - "@stdlib/random-base-uniform": "^0.2.3", - "@stdlib/error-tools-fmtprodmsg": "^0.2.3", - "@stdlib/utils-keys": "^0.2.3", - "@stdlib/utils-try-require": "^0.2.3", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.3" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..74aed14 --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index ecdba25..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.strictEqual( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 110f2fbf3b3255c0c7e124fc7dd8e653b590282b Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 16 Mar 2026 02:49:51 +0000 Subject: [PATCH 173/190] Transform error messages --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a744605..575bd22 100644 --- a/package.json +++ b/package.json @@ -107,7 +107,7 @@ "@stdlib/random-base-discrete-uniform": "^0.2.2", "@stdlib/random-base-randu": "^0.2.3", "@stdlib/random-base-uniform": "^0.2.3", - "@stdlib/string-format": "^0.2.3", + "@stdlib/error-tools-fmtprodmsg": "^0.2.3", "@stdlib/utils-keys": "^0.2.3", "@stdlib/utils-try-require": "^0.2.3", "tape": "git+https://github.com/kgryte/tape.git#fix/globby", From b80a8d976987ab2e7a5f6c71ddf452ffd6a31dd2 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 16 Mar 2026 04:38:24 +0000 Subject: [PATCH 174/190] Remove files --- index.d.ts | 856 --------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4842 ------------------------------------------------- 4 files changed, 5703 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index d9ae8ad..0000000 --- a/index.d.ts +++ /dev/null @@ -1,856 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isEvenf = require( '@stdlib/math-base-assert-is-evenf' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isIntegerf = require( '@stdlib/math-base-assert-is-integerf' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeIntegerf = require( '@stdlib/math-base-assert-is-negative-integerf' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonnegativeIntegerf = require( '@stdlib/math-base-assert-is-nonnegative-integerf' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isOddf = require( '@stdlib/math-base-assert-is-oddf' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isProbabilityf = require( '@stdlib/math-base-assert-is-probabilityf' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a finite single-precision floating-point number is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEvenf( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEvenf( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEvenf( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEvenf( NaN ); - * // returns false - */ - isEvenf: typeof isEvenf; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a finite single-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isIntegerf( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isIntegerf( 3.14 ); - * // returns false - */ - isIntegerf: typeof isIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a finite single-precision floating-point number is a negative integer. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeIntegerf( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeIntegerf( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeIntegerf( 10.0 ); - * // returns false - */ - isNegativeIntegerf: typeof isNegativeIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a finite single-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonnegativeIntegerf( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonnegativeIntegerf( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonnegativeIntegerf( -10.0 ); - * // returns false - */ - isNonnegativeIntegerf: typeof isNonnegativeIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a finite single-precision floating-point number is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOddf( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOddf( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOddf( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOddf( NaN ); - * // returns false - */ - isOddf: typeof isOddf; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a single-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbabilityf( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbabilityf( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbabilityf( NaN ); - * // returns false - */ - isProbabilityf: typeof isProbabilityf; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index bcc8e6d..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2026 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.3-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";export{default as isEvenf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";export{default as isIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";export{default as isNegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";export{default as isNonnegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";export{default as isOddf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";import E from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";import O from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";import S from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";import U from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";export{default as isProbabilityf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";import k from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";import q from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";var A={};s(A,"isEvenInt32",e),s(A,"isOddInt32",t),s(A,"isComposite",i),s(A,"isCoprime",n),s(A,"isEven",r),s(A,"isEvenf",d),s(A,"isFinite",a),s(A,"isFinitef",m),s(A,"isInfinite",o),s(A,"isInfinitef",j),s(A,"isInteger",h),s(A,"isIntegerf",v),s(A,"isnan",l),s(A,"isnanf",f),s(A,"isNegativeFinite",p),s(A,"isNegativeInteger",b),s(A,"isNegativeIntegerf",g),s(A,"isNegativeZero",x),s(A,"isNegativeZerof",c),s(A,"isNonNegativeFinite",u),s(A,"isNonNegativeInteger",I),s(A,"isNonnegativeIntegerf",N),s(A,"isNonPositiveFinite",P),s(A,"isNonPositiveInteger",F),s(A,"isOdd",y),s(A,"isOddf",z),s(A,"isPositiveFinite",Z),s(A,"isPositiveInteger",E),s(A,"isPositiveZero",O),s(A,"isPositiveZerof",w),s(A,"isPrime",C),s(A,"isProbability",S),s(A,"isProbabilityf",U),s(A,"isSafeInteger",k),s(A,"isPow2Uint32",q);export{A as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index d82b9be..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nimport isEvenf from '@stdlib/math-base-assert-is-evenf';\nsetReadOnly( ns, 'isEvenf', isEvenf );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nimport isIntegerf from '@stdlib/math-base-assert-is-integerf';\nsetReadOnly( ns, 'isIntegerf', isIntegerf );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nimport isNegativeIntegerf from '@stdlib/math-base-assert-is-negative-integerf';\nsetReadOnly( ns, 'isNegativeIntegerf', isNegativeIntegerf );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nimport isNonnegativeIntegerf from '@stdlib/math-base-assert-is-nonnegative-integerf';\nsetReadOnly( ns, 'isNonnegativeIntegerf', isNonnegativeIntegerf );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nimport isOddf from '@stdlib/math-base-assert-is-oddf';\nsetReadOnly( ns, 'isOddf', isOddf );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nimport isProbabilityf from '@stdlib/math-base-assert-is-probabilityf';\nsetReadOnly( ns, 'isProbabilityf', isProbabilityf );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isEvenf","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isIntegerf","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeIntegerf","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonnegativeIntegerf","isNonPositiveFinite","isNonPositiveInteger","isOdd","isOddf","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isProbabilityf","isSafeInteger","isPow2Uint32"],"mappings":";;6mQAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,UAAAO,GAUAN,EAAAD,EAAA,WAAAQ,GAUAP,EAAAD,EAAA,YAAAS,GAUAR,EAAAD,EAAA,aAAAU,GAUAT,EAAAD,EAAA,cAAAW,GAUAV,EAAAD,EAAA,YAAAY,GAUAX,EAAAD,EAAA,aAAAa,GAUAZ,EAAAD,EAAA,QAAAc,GAUAb,EAAAD,EAAA,SAAAe,GAUAd,EAAAD,EAAA,mBAAAgB,GAUAf,EAAAD,EAAA,oBAAAiB,GAUAhB,EAAAD,EAAA,qBAAAkB,GAUAjB,EAAAD,EAAA,iBAAAmB,GAUAlB,EAAAD,EAAA,kBAAAoB,GAUAnB,EAAAD,EAAA,sBAAAqB,GAUApB,EAAAD,EAAA,uBAAAsB,GAUArB,EAAAD,EAAA,wBAAAuB,GAUAtB,EAAAD,EAAA,sBAAAwB,GAUAvB,EAAAD,EAAA,uBAAAyB,GAUAxB,EAAAD,EAAA,QAAA0B,GAUAzB,EAAAD,EAAA,SAAA2B,GAUA1B,EAAAD,EAAA,mBAAA4B,GAUA3B,EAAAD,EAAA,oBAAA6B,GAUA5B,EAAAD,EAAA,iBAAA8B,GAUA7B,EAAAD,EAAA,kBAAA+B,GAUA9B,EAAAD,EAAA,UAAAgC,GAUA/B,EAAAD,EAAA,gBAAAiC,GAUAhC,EAAAD,EAAA,iBAAAkC,GAUAjC,EAAAD,EAAA,gBAAAmC,GAUAlC,EAAAD,EAAA,eAAAoC"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 74aed14..0000000 --- a/stats.html +++ /dev/null @@ -1,4842 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From 02dd625aa039640f0667fea7ed38cde74357c47a Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Mon, 16 Mar 2026 04:38:56 +0000 Subject: [PATCH 175/190] Auto-generated commit --- .editorconfig | 180 - .eslintrc.js | 1 - .gitattributes | 66 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 821 --- .github/workflows/publish.yml | 261 - .github/workflows/test.yml | 101 - .github/workflows/test_bundles.yml | 213 - .github/workflows/test_coverage.yml | 142 - .github/workflows/test_install.yml | 94 - .github/workflows/test_published_package.yml | 115 - .gitignore | 199 - .npmignore | 229 - .npmrc | 31 - CHANGELOG.md | 512 -- CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 113 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 357 -- package.json | 121 +- stats.html | 4842 ++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 41 files changed, 4904 insertions(+), 4628 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .github/workflows/test_published_package.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index dab5d2a..0000000 --- a/.editorconfig +++ /dev/null @@ -1,180 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim. - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 1c88e69..0000000 --- a/.gitattributes +++ /dev/null @@ -1,66 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/lib/node_modules/** -linguist-vendored -linguist-generated - -# Configure directories which should *not* be included in GitHub language statistics: -/deps/** linguist-vendored -/dist/** linguist-generated -/workshops/** linguist-vendored - -benchmark/** linguist-vendored -docs/* linguist-documentation -etc/** linguist-vendored -examples/** linguist-documentation -scripts/** linguist-vendored -test/** linguist-vendored -tools/** linguist-vendored - -# Configure files which should *not* be included in GitHub language statistics: -Makefile linguist-vendored -*.mk linguist-vendored -*.jl linguist-vendored -*.py linguist-vendored -*.R linguist-vendored - -# Configure files which should be included in GitHub language statistics: -docs/types/*.d.ts -linguist-documentation diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index fc38612..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2026-03-16T02:05:38.104Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 21386b4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/contributing/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 83d50c4..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,821 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send notification to Zulip if job fails: - - name: 'Send notification to Zulip in case of failure' - # Pin action to full length commit SHA - uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2 - if: failure() - with: - api-key: ${{ secrets.ZULIP_API_KEY }} - email: 'github-actions-bot@stdlib.zulipchat.com' - organization-url: 'https://stdlib.zulipchat.com' - to: 'workflows-standalone' - type: 'stream' - topic: ${{ github.event.repository.name }} - content: | - :cross_mark: **${{ github.workflow }}** workflow failed - - **Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }}) - **Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -156,7 +153,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -221,75 +218,75 @@ Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-evenf]: https://github.com/stdlib-js/math-base-assert-is-evenf +[@stdlib/math/base/assert/is-evenf]: https://github.com/stdlib-js/math-base-assert-is-evenf/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-integerf]: https://github.com/stdlib-js/math-base-assert-is-integerf +[@stdlib/math/base/assert/is-integerf]: https://github.com/stdlib-js/math-base-assert-is-integerf/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-integerf]: https://github.com/stdlib-js/math-base-assert-is-negative-integerf +[@stdlib/math/base/assert/is-negative-integerf]: https://github.com/stdlib-js/math-base-assert-is-negative-integerf/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integerf]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integerf +[@stdlib/math/base/assert/is-nonnegative-integerf]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integerf/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-oddf]: https://github.com/stdlib-js/math-base-assert-is-oddf +[@stdlib/math/base/assert/is-oddf]: https://github.com/stdlib-js/math-base-assert-is-oddf/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-probabilityf]: https://github.com/stdlib-js/math-base-assert-is-probabilityf +[@stdlib/math/base/assert/is-probabilityf]: https://github.com/stdlib-js/math-base-assert-is-probabilityf/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 93392a1..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isEvenf",require('@stdlib/math-base-assert-is-evenf/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isIntegerf",require('@stdlib/math-base-assert-is-integerf/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeIntegerf",require('@stdlib/math-base-assert-is-negative-integerf/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonnegativeIntegerf",require('@stdlib/math-base-assert-is-nonnegative-integerf/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isOddf",require('@stdlib/math-base-assert-is-oddf/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isProbabilityf",require('@stdlib/math-base-assert-is-probabilityf/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 553b4e9..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nsetReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nsetReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nsetReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nsetReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nsetReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nsetReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,qBAAsB,QAAS,+CAAgD,CAAE,EASlGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,wBAAyB,QAAS,kDAAmD,CAAE,EASxGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,iBAAkB,QAAS,0CAA2C,CAAE,EASzFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..bcc8e6d --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2026 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.3-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";export{default as isEvenf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";export{default as isIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";export{default as isNegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";export{default as isNonnegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";export{default as isOddf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";import E from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";import O from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";import S from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";import U from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";export{default as isProbabilityf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";import k from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";import q from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";var A={};s(A,"isEvenInt32",e),s(A,"isOddInt32",t),s(A,"isComposite",i),s(A,"isCoprime",n),s(A,"isEven",r),s(A,"isEvenf",d),s(A,"isFinite",a),s(A,"isFinitef",m),s(A,"isInfinite",o),s(A,"isInfinitef",j),s(A,"isInteger",h),s(A,"isIntegerf",v),s(A,"isnan",l),s(A,"isnanf",f),s(A,"isNegativeFinite",p),s(A,"isNegativeInteger",b),s(A,"isNegativeIntegerf",g),s(A,"isNegativeZero",x),s(A,"isNegativeZerof",c),s(A,"isNonNegativeFinite",u),s(A,"isNonNegativeInteger",I),s(A,"isNonnegativeIntegerf",N),s(A,"isNonPositiveFinite",P),s(A,"isNonPositiveInteger",F),s(A,"isOdd",y),s(A,"isOddf",z),s(A,"isPositiveFinite",Z),s(A,"isPositiveInteger",E),s(A,"isPositiveZero",O),s(A,"isPositiveZerof",w),s(A,"isPrime",C),s(A,"isProbability",S),s(A,"isProbabilityf",U),s(A,"isSafeInteger",k),s(A,"isPow2Uint32",q);export{A as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..d82b9be --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nimport isEvenf from '@stdlib/math-base-assert-is-evenf';\nsetReadOnly( ns, 'isEvenf', isEvenf );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nimport isIntegerf from '@stdlib/math-base-assert-is-integerf';\nsetReadOnly( ns, 'isIntegerf', isIntegerf );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nimport isNegativeIntegerf from '@stdlib/math-base-assert-is-negative-integerf';\nsetReadOnly( ns, 'isNegativeIntegerf', isNegativeIntegerf );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nimport isNonnegativeIntegerf from '@stdlib/math-base-assert-is-nonnegative-integerf';\nsetReadOnly( ns, 'isNonnegativeIntegerf', isNonnegativeIntegerf );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nimport isOddf from '@stdlib/math-base-assert-is-oddf';\nsetReadOnly( ns, 'isOddf', isOddf );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nimport isProbabilityf from '@stdlib/math-base-assert-is-probabilityf';\nsetReadOnly( ns, 'isProbabilityf', isProbabilityf );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isEvenf","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isIntegerf","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeIntegerf","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonnegativeIntegerf","isNonPositiveFinite","isNonPositiveInteger","isOdd","isOddf","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isProbabilityf","isSafeInteger","isPow2Uint32"],"mappings":";;6mQAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,UAAAO,GAUAN,EAAAD,EAAA,WAAAQ,GAUAP,EAAAD,EAAA,YAAAS,GAUAR,EAAAD,EAAA,aAAAU,GAUAT,EAAAD,EAAA,cAAAW,GAUAV,EAAAD,EAAA,YAAAY,GAUAX,EAAAD,EAAA,aAAAa,GAUAZ,EAAAD,EAAA,QAAAc,GAUAb,EAAAD,EAAA,SAAAe,GAUAd,EAAAD,EAAA,mBAAAgB,GAUAf,EAAAD,EAAA,oBAAAiB,GAUAhB,EAAAD,EAAA,qBAAAkB,GAUAjB,EAAAD,EAAA,iBAAAmB,GAUAlB,EAAAD,EAAA,kBAAAoB,GAUAnB,EAAAD,EAAA,sBAAAqB,GAUApB,EAAAD,EAAA,uBAAAsB,GAUArB,EAAAD,EAAA,wBAAAuB,GAUAtB,EAAAD,EAAA,sBAAAwB,GAUAvB,EAAAD,EAAA,uBAAAyB,GAUAxB,EAAAD,EAAA,QAAA0B,GAUAzB,EAAAD,EAAA,SAAA2B,GAUA1B,EAAAD,EAAA,mBAAA4B,GAUA3B,EAAAD,EAAA,oBAAA6B,GAUA5B,EAAAD,EAAA,iBAAA8B,GAUA7B,EAAAD,EAAA,kBAAA+B,GAUA9B,EAAAD,EAAA,UAAAgC,GAUA/B,EAAAD,EAAA,gBAAAiC,GAUAhC,EAAAD,EAAA,iBAAAkC,GAUAjC,EAAAD,EAAA,gBAAAmC,GAUAlC,EAAAD,EAAA,eAAAoC"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 3e4f9c3..0000000 --- a/lib/index.js +++ /dev/null @@ -1,357 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isEvenf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-evenf} -*/ -setReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integerf} -*/ -setReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integerf} -*/ -setReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonnegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf} -*/ -setReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isOddf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-oddf} -*/ -setReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isProbabilityf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probabilityf} -*/ -setReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 575bd22..1fd9df9 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.4.1", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,101 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.3.2", - "@stdlib/math-base-assert-int32-is-odd": "^0.3.2", - "@stdlib/math-base-assert-is-composite": "^0.3.2", - "@stdlib/math-base-assert-is-coprime": "^0.2.3", - "@stdlib/math-base-assert-is-even": "^0.2.5", - "@stdlib/math-base-assert-is-evenf": "^0.1.1", - "@stdlib/math-base-assert-is-finite": "^0.2.3", - "@stdlib/math-base-assert-is-finitef": "^0.2.3", - "@stdlib/math-base-assert-is-infinite": "^0.2.3", - "@stdlib/math-base-assert-is-infinitef": "^0.2.3", - "@stdlib/math-base-assert-is-integer": "^0.2.7", - "@stdlib/math-base-assert-is-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-nan": "^0.2.3", - "@stdlib/math-base-assert-is-nanf": "^0.2.3", - "@stdlib/math-base-assert-is-negative-finite": "^0.3.2", - "@stdlib/math-base-assert-is-negative-integer": "^0.3.2", - "@stdlib/math-base-assert-is-negative-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.3", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.4", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.3.2", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.2", - "@stdlib/math-base-assert-is-nonnegative-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.3.2", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.2.3", - "@stdlib/math-base-assert-is-odd": "^0.3.2", - "@stdlib/math-base-assert-is-oddf": "^0.1.1", - "@stdlib/math-base-assert-is-positive-finite": "^0.3.2", - "@stdlib/math-base-assert-is-positive-integer": "^0.3.2", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.3", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.4", - "@stdlib/math-base-assert-is-prime": "^0.3.2", - "@stdlib/math-base-assert-is-probability": "^0.2.4", - "@stdlib/math-base-assert-is-probabilityf": "^0.1.1", - "@stdlib/math-base-assert-is-safe-integer": "^0.3.2", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.2", - "@stdlib/utils-define-read-only-property": "^0.2.3" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.3", - "@stdlib/boolean-ctor": "^0.2.3", - "@stdlib/console-log-each-map": "^0.1.1", - "@stdlib/constants-float32-max": "^0.2.3", - "@stdlib/constants-float32-ninf": "^0.2.3", - "@stdlib/constants-float32-pinf": "^0.2.3", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.3", - "@stdlib/constants-float64-max": "^0.2.3", - "@stdlib/constants-float64-max-safe-integer": "^0.2.3", - "@stdlib/constants-float64-min-safe-integer": "^0.2.3", - "@stdlib/constants-float64-ninf": "^0.2.3", - "@stdlib/constants-float64-pinf": "^0.2.3", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.3", - "@stdlib/constants-int32-max": "^0.3.1", - "@stdlib/datasets-primes-100k": "^0.2.3", - "@stdlib/math-base-special-floor": "^0.2.4", - "@stdlib/math-base-special-floorf": "^0.2.3", - "@stdlib/math-base-special-gcd": "^0.3.2", - "@stdlib/math-base-special-log10": "^0.3.1", - "@stdlib/math-base-special-log2": "^0.3.1", - "@stdlib/math-base-special-pow": "^0.3.1", - "@stdlib/math-base-special-round": "^0.3.1", - "@stdlib/math-base-special-roundf": "^0.1.1", - "@stdlib/math-base-special-sqrt": "^0.2.3", - "@stdlib/math-base-special-trunc": "^0.2.3", - "@stdlib/math-base-special-truncf": "^0.2.3", - "@stdlib/number-ctor": "^0.2.3", - "@stdlib/number-float64-base-to-float32": "^0.2.3", - "@stdlib/random-array-discrete-uniform": "^0.2.2", - "@stdlib/random-array-uniform": "^0.2.2", - "@stdlib/random-base-discrete-uniform": "^0.2.2", - "@stdlib/random-base-randu": "^0.2.3", - "@stdlib/random-base-uniform": "^0.2.3", - "@stdlib/error-tools-fmtprodmsg": "^0.2.3", - "@stdlib/utils-keys": "^0.2.3", - "@stdlib/utils-try-require": "^0.2.3", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.3" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..74aed14 --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index ecdba25..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.strictEqual( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 4eabe068c3ec6163a63b175d92ce7b67802314fa Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 29 Mar 2026 03:21:38 +0000 Subject: [PATCH 176/190] Transform error messages --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a744605..575bd22 100644 --- a/package.json +++ b/package.json @@ -107,7 +107,7 @@ "@stdlib/random-base-discrete-uniform": "^0.2.2", "@stdlib/random-base-randu": "^0.2.3", "@stdlib/random-base-uniform": "^0.2.3", - "@stdlib/string-format": "^0.2.3", + "@stdlib/error-tools-fmtprodmsg": "^0.2.3", "@stdlib/utils-keys": "^0.2.3", "@stdlib/utils-try-require": "^0.2.3", "tape": "git+https://github.com/kgryte/tape.git#fix/globby", From 80df3fb4587b0a5c24a31c61ed80724e3b2fd709 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 29 Mar 2026 03:26:18 +0000 Subject: [PATCH 177/190] Remove files --- index.d.ts | 856 --------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4842 ------------------------------------------------- 4 files changed, 5703 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index d9ae8ad..0000000 --- a/index.d.ts +++ /dev/null @@ -1,856 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isEvenf = require( '@stdlib/math-base-assert-is-evenf' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isIntegerf = require( '@stdlib/math-base-assert-is-integerf' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeIntegerf = require( '@stdlib/math-base-assert-is-negative-integerf' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonnegativeIntegerf = require( '@stdlib/math-base-assert-is-nonnegative-integerf' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isOddf = require( '@stdlib/math-base-assert-is-oddf' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isProbabilityf = require( '@stdlib/math-base-assert-is-probabilityf' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a finite single-precision floating-point number is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEvenf( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEvenf( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEvenf( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEvenf( NaN ); - * // returns false - */ - isEvenf: typeof isEvenf; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a finite single-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isIntegerf( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isIntegerf( 3.14 ); - * // returns false - */ - isIntegerf: typeof isIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a finite single-precision floating-point number is a negative integer. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeIntegerf( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeIntegerf( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeIntegerf( 10.0 ); - * // returns false - */ - isNegativeIntegerf: typeof isNegativeIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a finite single-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonnegativeIntegerf( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonnegativeIntegerf( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonnegativeIntegerf( -10.0 ); - * // returns false - */ - isNonnegativeIntegerf: typeof isNonnegativeIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a finite single-precision floating-point number is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOddf( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOddf( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOddf( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOddf( NaN ); - * // returns false - */ - isOddf: typeof isOddf; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a single-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbabilityf( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbabilityf( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbabilityf( NaN ); - * // returns false - */ - isProbabilityf: typeof isProbabilityf; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index bcc8e6d..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2026 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.3-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";export{default as isEvenf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";export{default as isIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";export{default as isNegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";export{default as isNonnegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";export{default as isOddf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";import E from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";import O from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";import S from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";import U from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";export{default as isProbabilityf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";import k from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";import q from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";var A={};s(A,"isEvenInt32",e),s(A,"isOddInt32",t),s(A,"isComposite",i),s(A,"isCoprime",n),s(A,"isEven",r),s(A,"isEvenf",d),s(A,"isFinite",a),s(A,"isFinitef",m),s(A,"isInfinite",o),s(A,"isInfinitef",j),s(A,"isInteger",h),s(A,"isIntegerf",v),s(A,"isnan",l),s(A,"isnanf",f),s(A,"isNegativeFinite",p),s(A,"isNegativeInteger",b),s(A,"isNegativeIntegerf",g),s(A,"isNegativeZero",x),s(A,"isNegativeZerof",c),s(A,"isNonNegativeFinite",u),s(A,"isNonNegativeInteger",I),s(A,"isNonnegativeIntegerf",N),s(A,"isNonPositiveFinite",P),s(A,"isNonPositiveInteger",F),s(A,"isOdd",y),s(A,"isOddf",z),s(A,"isPositiveFinite",Z),s(A,"isPositiveInteger",E),s(A,"isPositiveZero",O),s(A,"isPositiveZerof",w),s(A,"isPrime",C),s(A,"isProbability",S),s(A,"isProbabilityf",U),s(A,"isSafeInteger",k),s(A,"isPow2Uint32",q);export{A as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index d82b9be..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nimport isEvenf from '@stdlib/math-base-assert-is-evenf';\nsetReadOnly( ns, 'isEvenf', isEvenf );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nimport isIntegerf from '@stdlib/math-base-assert-is-integerf';\nsetReadOnly( ns, 'isIntegerf', isIntegerf );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nimport isNegativeIntegerf from '@stdlib/math-base-assert-is-negative-integerf';\nsetReadOnly( ns, 'isNegativeIntegerf', isNegativeIntegerf );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nimport isNonnegativeIntegerf from '@stdlib/math-base-assert-is-nonnegative-integerf';\nsetReadOnly( ns, 'isNonnegativeIntegerf', isNonnegativeIntegerf );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nimport isOddf from '@stdlib/math-base-assert-is-oddf';\nsetReadOnly( ns, 'isOddf', isOddf );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nimport isProbabilityf from '@stdlib/math-base-assert-is-probabilityf';\nsetReadOnly( ns, 'isProbabilityf', isProbabilityf );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isEvenf","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isIntegerf","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeIntegerf","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonnegativeIntegerf","isNonPositiveFinite","isNonPositiveInteger","isOdd","isOddf","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isProbabilityf","isSafeInteger","isPow2Uint32"],"mappings":";;6mQAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,UAAAO,GAUAN,EAAAD,EAAA,WAAAQ,GAUAP,EAAAD,EAAA,YAAAS,GAUAR,EAAAD,EAAA,aAAAU,GAUAT,EAAAD,EAAA,cAAAW,GAUAV,EAAAD,EAAA,YAAAY,GAUAX,EAAAD,EAAA,aAAAa,GAUAZ,EAAAD,EAAA,QAAAc,GAUAb,EAAAD,EAAA,SAAAe,GAUAd,EAAAD,EAAA,mBAAAgB,GAUAf,EAAAD,EAAA,oBAAAiB,GAUAhB,EAAAD,EAAA,qBAAAkB,GAUAjB,EAAAD,EAAA,iBAAAmB,GAUAlB,EAAAD,EAAA,kBAAAoB,GAUAnB,EAAAD,EAAA,sBAAAqB,GAUApB,EAAAD,EAAA,uBAAAsB,GAUArB,EAAAD,EAAA,wBAAAuB,GAUAtB,EAAAD,EAAA,sBAAAwB,GAUAvB,EAAAD,EAAA,uBAAAyB,GAUAxB,EAAAD,EAAA,QAAA0B,GAUAzB,EAAAD,EAAA,SAAA2B,GAUA1B,EAAAD,EAAA,mBAAA4B,GAUA3B,EAAAD,EAAA,oBAAA6B,GAUA5B,EAAAD,EAAA,iBAAA8B,GAUA7B,EAAAD,EAAA,kBAAA+B,GAUA9B,EAAAD,EAAA,UAAAgC,GAUA/B,EAAAD,EAAA,gBAAAiC,GAUAhC,EAAAD,EAAA,iBAAAkC,GAUAjC,EAAAD,EAAA,gBAAAmC,GAUAlC,EAAAD,EAAA,eAAAoC"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 74aed14..0000000 --- a/stats.html +++ /dev/null @@ -1,4842 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From a4d9c4d043864ae2562b1545321a1abe2b32103d Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 29 Mar 2026 03:26:49 +0000 Subject: [PATCH 178/190] Auto-generated commit --- .editorconfig | 189 - .eslintrc.js | 1 - .gitattributes | 68 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 821 --- .github/workflows/publish.yml | 261 - .github/workflows/test.yml | 101 - .github/workflows/test_bundles.yml | 213 - .github/workflows/test_coverage.yml | 142 - .github/workflows/test_install.yml | 94 - .github/workflows/test_published_package.yml | 115 - .gitignore | 199 - .npmignore | 229 - .npmrc | 31 - CHANGELOG.md | 512 -- CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 113 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 357 -- package.json | 121 +- stats.html | 4842 ++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 41 files changed, 4904 insertions(+), 4639 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .github/workflows/test_published_package.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 80f3fca..0000000 --- a/.editorconfig +++ /dev/null @@ -1,189 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim. - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Ignore generated lock files for GitHub Agentic Workflows: -[*.lock.yml] -charset = unset -end_of_line = unset -indent_style = unset -indent_size = unset -trim_trailing_whitespace = unset -insert_final_newline = unset - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 24b327f..0000000 --- a/.gitattributes +++ /dev/null @@ -1,68 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/lib/node_modules/** -linguist-vendored -linguist-generated - -# Configure directories which should *not* be included in GitHub language statistics: -/deps/** linguist-vendored -/dist/** linguist-generated -/workshops/** linguist-vendored - -benchmark/** linguist-vendored -docs/* linguist-documentation -etc/** linguist-vendored -examples/** linguist-documentation -scripts/** linguist-vendored -test/** linguist-vendored -tools/** linguist-vendored - -# Configure files which should *not* be included in GitHub language statistics: -Makefile linguist-vendored -*.mk linguist-vendored -*.jl linguist-vendored -*.py linguist-vendored -*.R linguist-vendored - -# Configure files which should be included in GitHub language statistics: -docs/types/*.d.ts -linguist-documentation - -.github/workflows/*.lock.yml linguist-generated=true merge=ours diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 352dfb7..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2026-03-29T03:20:13.252Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 21386b4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/contributing/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 83d50c4..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,821 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send notification to Zulip if job fails: - - name: 'Send notification to Zulip in case of failure' - # Pin action to full length commit SHA - uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2 - if: failure() - with: - api-key: ${{ secrets.ZULIP_API_KEY }} - email: 'github-actions-bot@stdlib.zulipchat.com' - organization-url: 'https://stdlib.zulipchat.com' - to: 'workflows-standalone' - type: 'stream' - topic: ${{ github.event.repository.name }} - content: | - :cross_mark: **${{ github.workflow }}** workflow failed - - **Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }}) - **Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -156,7 +153,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -221,75 +218,75 @@ Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-evenf]: https://github.com/stdlib-js/math-base-assert-is-evenf +[@stdlib/math/base/assert/is-evenf]: https://github.com/stdlib-js/math-base-assert-is-evenf/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-integerf]: https://github.com/stdlib-js/math-base-assert-is-integerf +[@stdlib/math/base/assert/is-integerf]: https://github.com/stdlib-js/math-base-assert-is-integerf/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-integerf]: https://github.com/stdlib-js/math-base-assert-is-negative-integerf +[@stdlib/math/base/assert/is-negative-integerf]: https://github.com/stdlib-js/math-base-assert-is-negative-integerf/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integerf]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integerf +[@stdlib/math/base/assert/is-nonnegative-integerf]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integerf/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-oddf]: https://github.com/stdlib-js/math-base-assert-is-oddf +[@stdlib/math/base/assert/is-oddf]: https://github.com/stdlib-js/math-base-assert-is-oddf/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-probabilityf]: https://github.com/stdlib-js/math-base-assert-is-probabilityf +[@stdlib/math/base/assert/is-probabilityf]: https://github.com/stdlib-js/math-base-assert-is-probabilityf/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 93392a1..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isEvenf",require('@stdlib/math-base-assert-is-evenf/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isIntegerf",require('@stdlib/math-base-assert-is-integerf/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeIntegerf",require('@stdlib/math-base-assert-is-negative-integerf/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonnegativeIntegerf",require('@stdlib/math-base-assert-is-nonnegative-integerf/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isOddf",require('@stdlib/math-base-assert-is-oddf/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isProbabilityf",require('@stdlib/math-base-assert-is-probabilityf/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 553b4e9..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nsetReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nsetReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nsetReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nsetReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nsetReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nsetReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,qBAAsB,QAAS,+CAAgD,CAAE,EASlGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,wBAAyB,QAAS,kDAAmD,CAAE,EASxGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,iBAAkB,QAAS,0CAA2C,CAAE,EASzFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..bcc8e6d --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2026 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.3-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";export{default as isEvenf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";export{default as isIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";export{default as isNegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";export{default as isNonnegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";export{default as isOddf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";import E from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";import O from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";import S from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";import U from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";export{default as isProbabilityf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";import k from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";import q from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";var A={};s(A,"isEvenInt32",e),s(A,"isOddInt32",t),s(A,"isComposite",i),s(A,"isCoprime",n),s(A,"isEven",r),s(A,"isEvenf",d),s(A,"isFinite",a),s(A,"isFinitef",m),s(A,"isInfinite",o),s(A,"isInfinitef",j),s(A,"isInteger",h),s(A,"isIntegerf",v),s(A,"isnan",l),s(A,"isnanf",f),s(A,"isNegativeFinite",p),s(A,"isNegativeInteger",b),s(A,"isNegativeIntegerf",g),s(A,"isNegativeZero",x),s(A,"isNegativeZerof",c),s(A,"isNonNegativeFinite",u),s(A,"isNonNegativeInteger",I),s(A,"isNonnegativeIntegerf",N),s(A,"isNonPositiveFinite",P),s(A,"isNonPositiveInteger",F),s(A,"isOdd",y),s(A,"isOddf",z),s(A,"isPositiveFinite",Z),s(A,"isPositiveInteger",E),s(A,"isPositiveZero",O),s(A,"isPositiveZerof",w),s(A,"isPrime",C),s(A,"isProbability",S),s(A,"isProbabilityf",U),s(A,"isSafeInteger",k),s(A,"isPow2Uint32",q);export{A as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..d82b9be --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nimport isEvenf from '@stdlib/math-base-assert-is-evenf';\nsetReadOnly( ns, 'isEvenf', isEvenf );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nimport isIntegerf from '@stdlib/math-base-assert-is-integerf';\nsetReadOnly( ns, 'isIntegerf', isIntegerf );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nimport isNegativeIntegerf from '@stdlib/math-base-assert-is-negative-integerf';\nsetReadOnly( ns, 'isNegativeIntegerf', isNegativeIntegerf );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nimport isNonnegativeIntegerf from '@stdlib/math-base-assert-is-nonnegative-integerf';\nsetReadOnly( ns, 'isNonnegativeIntegerf', isNonnegativeIntegerf );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nimport isOddf from '@stdlib/math-base-assert-is-oddf';\nsetReadOnly( ns, 'isOddf', isOddf );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nimport isProbabilityf from '@stdlib/math-base-assert-is-probabilityf';\nsetReadOnly( ns, 'isProbabilityf', isProbabilityf );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isEvenf","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isIntegerf","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeIntegerf","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonnegativeIntegerf","isNonPositiveFinite","isNonPositiveInteger","isOdd","isOddf","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isProbabilityf","isSafeInteger","isPow2Uint32"],"mappings":";;6mQAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,UAAAO,GAUAN,EAAAD,EAAA,WAAAQ,GAUAP,EAAAD,EAAA,YAAAS,GAUAR,EAAAD,EAAA,aAAAU,GAUAT,EAAAD,EAAA,cAAAW,GAUAV,EAAAD,EAAA,YAAAY,GAUAX,EAAAD,EAAA,aAAAa,GAUAZ,EAAAD,EAAA,QAAAc,GAUAb,EAAAD,EAAA,SAAAe,GAUAd,EAAAD,EAAA,mBAAAgB,GAUAf,EAAAD,EAAA,oBAAAiB,GAUAhB,EAAAD,EAAA,qBAAAkB,GAUAjB,EAAAD,EAAA,iBAAAmB,GAUAlB,EAAAD,EAAA,kBAAAoB,GAUAnB,EAAAD,EAAA,sBAAAqB,GAUApB,EAAAD,EAAA,uBAAAsB,GAUArB,EAAAD,EAAA,wBAAAuB,GAUAtB,EAAAD,EAAA,sBAAAwB,GAUAvB,EAAAD,EAAA,uBAAAyB,GAUAxB,EAAAD,EAAA,QAAA0B,GAUAzB,EAAAD,EAAA,SAAA2B,GAUA1B,EAAAD,EAAA,mBAAA4B,GAUA3B,EAAAD,EAAA,oBAAA6B,GAUA5B,EAAAD,EAAA,iBAAA8B,GAUA7B,EAAAD,EAAA,kBAAA+B,GAUA9B,EAAAD,EAAA,UAAAgC,GAUA/B,EAAAD,EAAA,gBAAAiC,GAUAhC,EAAAD,EAAA,iBAAAkC,GAUAjC,EAAAD,EAAA,gBAAAmC,GAUAlC,EAAAD,EAAA,eAAAoC"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 3e4f9c3..0000000 --- a/lib/index.js +++ /dev/null @@ -1,357 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isEvenf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-evenf} -*/ -setReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integerf} -*/ -setReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integerf} -*/ -setReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonnegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf} -*/ -setReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isOddf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-oddf} -*/ -setReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isProbabilityf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probabilityf} -*/ -setReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 575bd22..1fd9df9 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.4.1", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,101 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.3.2", - "@stdlib/math-base-assert-int32-is-odd": "^0.3.2", - "@stdlib/math-base-assert-is-composite": "^0.3.2", - "@stdlib/math-base-assert-is-coprime": "^0.2.3", - "@stdlib/math-base-assert-is-even": "^0.2.5", - "@stdlib/math-base-assert-is-evenf": "^0.1.1", - "@stdlib/math-base-assert-is-finite": "^0.2.3", - "@stdlib/math-base-assert-is-finitef": "^0.2.3", - "@stdlib/math-base-assert-is-infinite": "^0.2.3", - "@stdlib/math-base-assert-is-infinitef": "^0.2.3", - "@stdlib/math-base-assert-is-integer": "^0.2.7", - "@stdlib/math-base-assert-is-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-nan": "^0.2.3", - "@stdlib/math-base-assert-is-nanf": "^0.2.3", - "@stdlib/math-base-assert-is-negative-finite": "^0.3.2", - "@stdlib/math-base-assert-is-negative-integer": "^0.3.2", - "@stdlib/math-base-assert-is-negative-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.3", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.4", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.3.2", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.2", - "@stdlib/math-base-assert-is-nonnegative-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.3.2", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.2.3", - "@stdlib/math-base-assert-is-odd": "^0.3.2", - "@stdlib/math-base-assert-is-oddf": "^0.1.1", - "@stdlib/math-base-assert-is-positive-finite": "^0.3.2", - "@stdlib/math-base-assert-is-positive-integer": "^0.3.2", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.3", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.4", - "@stdlib/math-base-assert-is-prime": "^0.3.2", - "@stdlib/math-base-assert-is-probability": "^0.2.4", - "@stdlib/math-base-assert-is-probabilityf": "^0.1.1", - "@stdlib/math-base-assert-is-safe-integer": "^0.3.2", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.2", - "@stdlib/utils-define-read-only-property": "^0.2.3" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.3", - "@stdlib/boolean-ctor": "^0.2.3", - "@stdlib/console-log-each-map": "^0.1.1", - "@stdlib/constants-float32-max": "^0.2.3", - "@stdlib/constants-float32-ninf": "^0.2.3", - "@stdlib/constants-float32-pinf": "^0.2.3", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.3", - "@stdlib/constants-float64-max": "^0.2.3", - "@stdlib/constants-float64-max-safe-integer": "^0.2.3", - "@stdlib/constants-float64-min-safe-integer": "^0.2.3", - "@stdlib/constants-float64-ninf": "^0.2.3", - "@stdlib/constants-float64-pinf": "^0.2.3", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.3", - "@stdlib/constants-int32-max": "^0.3.1", - "@stdlib/datasets-primes-100k": "^0.2.3", - "@stdlib/math-base-special-floor": "^0.2.4", - "@stdlib/math-base-special-floorf": "^0.2.3", - "@stdlib/math-base-special-gcd": "^0.3.2", - "@stdlib/math-base-special-log10": "^0.3.1", - "@stdlib/math-base-special-log2": "^0.3.1", - "@stdlib/math-base-special-pow": "^0.3.1", - "@stdlib/math-base-special-round": "^0.3.1", - "@stdlib/math-base-special-roundf": "^0.1.1", - "@stdlib/math-base-special-sqrt": "^0.2.3", - "@stdlib/math-base-special-trunc": "^0.2.3", - "@stdlib/math-base-special-truncf": "^0.2.3", - "@stdlib/number-ctor": "^0.2.3", - "@stdlib/number-float64-base-to-float32": "^0.2.3", - "@stdlib/random-array-discrete-uniform": "^0.2.2", - "@stdlib/random-array-uniform": "^0.2.2", - "@stdlib/random-base-discrete-uniform": "^0.2.2", - "@stdlib/random-base-randu": "^0.2.3", - "@stdlib/random-base-uniform": "^0.2.3", - "@stdlib/error-tools-fmtprodmsg": "^0.2.3", - "@stdlib/utils-keys": "^0.2.3", - "@stdlib/utils-try-require": "^0.2.3", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.3" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..74aed14 --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index ecdba25..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.strictEqual( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 50892c9679ed768f293b1f13514eef06b778773e Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 6 Jun 2026 04:52:47 +0000 Subject: [PATCH 179/190] Transform error messages --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a744605..575bd22 100644 --- a/package.json +++ b/package.json @@ -107,7 +107,7 @@ "@stdlib/random-base-discrete-uniform": "^0.2.2", "@stdlib/random-base-randu": "^0.2.3", "@stdlib/random-base-uniform": "^0.2.3", - "@stdlib/string-format": "^0.2.3", + "@stdlib/error-tools-fmtprodmsg": "^0.2.3", "@stdlib/utils-keys": "^0.2.3", "@stdlib/utils-try-require": "^0.2.3", "tape": "git+https://github.com/kgryte/tape.git#fix/globby", From ea0e9c19aef67cbcb08c9bdbba643231f055ea5b Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 6 Jun 2026 05:26:30 +0000 Subject: [PATCH 180/190] Remove files --- index.d.ts | 856 --------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4842 ------------------------------------------------- 4 files changed, 5703 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index d9ae8ad..0000000 --- a/index.d.ts +++ /dev/null @@ -1,856 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isEvenf = require( '@stdlib/math-base-assert-is-evenf' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isIntegerf = require( '@stdlib/math-base-assert-is-integerf' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeIntegerf = require( '@stdlib/math-base-assert-is-negative-integerf' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonnegativeIntegerf = require( '@stdlib/math-base-assert-is-nonnegative-integerf' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isOddf = require( '@stdlib/math-base-assert-is-oddf' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isProbabilityf = require( '@stdlib/math-base-assert-is-probabilityf' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a finite single-precision floating-point number is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEvenf( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEvenf( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEvenf( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEvenf( NaN ); - * // returns false - */ - isEvenf: typeof isEvenf; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a finite single-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isIntegerf( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isIntegerf( 3.14 ); - * // returns false - */ - isIntegerf: typeof isIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a finite single-precision floating-point number is a negative integer. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeIntegerf( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeIntegerf( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeIntegerf( 10.0 ); - * // returns false - */ - isNegativeIntegerf: typeof isNegativeIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a finite single-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonnegativeIntegerf( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonnegativeIntegerf( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonnegativeIntegerf( -10.0 ); - * // returns false - */ - isNonnegativeIntegerf: typeof isNonnegativeIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a finite single-precision floating-point number is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOddf( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOddf( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOddf( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOddf( NaN ); - * // returns false - */ - isOddf: typeof isOddf; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a single-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbabilityf( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbabilityf( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbabilityf( NaN ); - * // returns false - */ - isProbabilityf: typeof isProbabilityf; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index bcc8e6d..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2026 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.3-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";export{default as isEvenf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";export{default as isIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";export{default as isNegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";export{default as isNonnegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";export{default as isOddf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";import E from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";import O from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";import S from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";import U from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";export{default as isProbabilityf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";import k from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";import q from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";var A={};s(A,"isEvenInt32",e),s(A,"isOddInt32",t),s(A,"isComposite",i),s(A,"isCoprime",n),s(A,"isEven",r),s(A,"isEvenf",d),s(A,"isFinite",a),s(A,"isFinitef",m),s(A,"isInfinite",o),s(A,"isInfinitef",j),s(A,"isInteger",h),s(A,"isIntegerf",v),s(A,"isnan",l),s(A,"isnanf",f),s(A,"isNegativeFinite",p),s(A,"isNegativeInteger",b),s(A,"isNegativeIntegerf",g),s(A,"isNegativeZero",x),s(A,"isNegativeZerof",c),s(A,"isNonNegativeFinite",u),s(A,"isNonNegativeInteger",I),s(A,"isNonnegativeIntegerf",N),s(A,"isNonPositiveFinite",P),s(A,"isNonPositiveInteger",F),s(A,"isOdd",y),s(A,"isOddf",z),s(A,"isPositiveFinite",Z),s(A,"isPositiveInteger",E),s(A,"isPositiveZero",O),s(A,"isPositiveZerof",w),s(A,"isPrime",C),s(A,"isProbability",S),s(A,"isProbabilityf",U),s(A,"isSafeInteger",k),s(A,"isPow2Uint32",q);export{A as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index d82b9be..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nimport isEvenf from '@stdlib/math-base-assert-is-evenf';\nsetReadOnly( ns, 'isEvenf', isEvenf );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nimport isIntegerf from '@stdlib/math-base-assert-is-integerf';\nsetReadOnly( ns, 'isIntegerf', isIntegerf );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nimport isNegativeIntegerf from '@stdlib/math-base-assert-is-negative-integerf';\nsetReadOnly( ns, 'isNegativeIntegerf', isNegativeIntegerf );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nimport isNonnegativeIntegerf from '@stdlib/math-base-assert-is-nonnegative-integerf';\nsetReadOnly( ns, 'isNonnegativeIntegerf', isNonnegativeIntegerf );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nimport isOddf from '@stdlib/math-base-assert-is-oddf';\nsetReadOnly( ns, 'isOddf', isOddf );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nimport isProbabilityf from '@stdlib/math-base-assert-is-probabilityf';\nsetReadOnly( ns, 'isProbabilityf', isProbabilityf );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isEvenf","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isIntegerf","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeIntegerf","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonnegativeIntegerf","isNonPositiveFinite","isNonPositiveInteger","isOdd","isOddf","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isProbabilityf","isSafeInteger","isPow2Uint32"],"mappings":";;6mQAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,UAAAO,GAUAN,EAAAD,EAAA,WAAAQ,GAUAP,EAAAD,EAAA,YAAAS,GAUAR,EAAAD,EAAA,aAAAU,GAUAT,EAAAD,EAAA,cAAAW,GAUAV,EAAAD,EAAA,YAAAY,GAUAX,EAAAD,EAAA,aAAAa,GAUAZ,EAAAD,EAAA,QAAAc,GAUAb,EAAAD,EAAA,SAAAe,GAUAd,EAAAD,EAAA,mBAAAgB,GAUAf,EAAAD,EAAA,oBAAAiB,GAUAhB,EAAAD,EAAA,qBAAAkB,GAUAjB,EAAAD,EAAA,iBAAAmB,GAUAlB,EAAAD,EAAA,kBAAAoB,GAUAnB,EAAAD,EAAA,sBAAAqB,GAUApB,EAAAD,EAAA,uBAAAsB,GAUArB,EAAAD,EAAA,wBAAAuB,GAUAtB,EAAAD,EAAA,sBAAAwB,GAUAvB,EAAAD,EAAA,uBAAAyB,GAUAxB,EAAAD,EAAA,QAAA0B,GAUAzB,EAAAD,EAAA,SAAA2B,GAUA1B,EAAAD,EAAA,mBAAA4B,GAUA3B,EAAAD,EAAA,oBAAA6B,GAUA5B,EAAAD,EAAA,iBAAA8B,GAUA7B,EAAAD,EAAA,kBAAA+B,GAUA9B,EAAAD,EAAA,UAAAgC,GAUA/B,EAAAD,EAAA,gBAAAiC,GAUAhC,EAAAD,EAAA,iBAAAkC,GAUAjC,EAAAD,EAAA,gBAAAmC,GAUAlC,EAAAD,EAAA,eAAAoC"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 74aed14..0000000 --- a/stats.html +++ /dev/null @@ -1,4842 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From a8f8ab69fc7d1b95c6a7ccdea92268a65e4c5ebc Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 6 Jun 2026 05:27:02 +0000 Subject: [PATCH 181/190] Auto-generated commit --- .editorconfig | 189 - .eslintrc.js | 1 - .gitattributes | 68 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 821 --- .github/workflows/publish.yml | 261 - .github/workflows/test.yml | 101 - .github/workflows/test_bundles.yml | 213 - .github/workflows/test_coverage.yml | 142 - .github/workflows/test_install.yml | 94 - .github/workflows/test_published_package.yml | 115 - .gitignore | 204 - .npmignore | 229 - .npmrc | 44 - CHANGELOG.md | 517 -- CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 113 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 357 -- package.json | 121 +- stats.html | 4842 ++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 40 files changed, 4904 insertions(+), 4661 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .github/workflows/test_published_package.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 80f3fca..0000000 --- a/.editorconfig +++ /dev/null @@ -1,189 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim. - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Ignore generated lock files for GitHub Agentic Workflows: -[*.lock.yml] -charset = unset -end_of_line = unset -indent_style = unset -indent_size = unset -trim_trailing_whitespace = unset -insert_final_newline = unset - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 24b327f..0000000 --- a/.gitattributes +++ /dev/null @@ -1,68 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/lib/node_modules/** -linguist-vendored -linguist-generated - -# Configure directories which should *not* be included in GitHub language statistics: -/deps/** linguist-vendored -/dist/** linguist-generated -/workshops/** linguist-vendored - -benchmark/** linguist-vendored -docs/* linguist-documentation -etc/** linguist-vendored -examples/** linguist-documentation -scripts/** linguist-vendored -test/** linguist-vendored -tools/** linguist-vendored - -# Configure files which should *not* be included in GitHub language statistics: -Makefile linguist-vendored -*.mk linguist-vendored -*.jl linguist-vendored -*.py linguist-vendored -*.R linguist-vendored - -# Configure files which should be included in GitHub language statistics: -docs/types/*.d.ts -linguist-documentation - -.github/workflows/*.lock.yml linguist-generated=true merge=ours diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 21386b4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/contributing/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 83d50c4..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,821 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send notification to Zulip if job fails: - - name: 'Send notification to Zulip in case of failure' - # Pin action to full length commit SHA - uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2 - if: failure() - with: - api-key: ${{ secrets.ZULIP_API_KEY }} - email: 'github-actions-bot@stdlib.zulipchat.com' - organization-url: 'https://stdlib.zulipchat.com' - to: 'workflows-standalone' - type: 'stream' - topic: ${{ github.event.repository.name }} - content: | - :cross_mark: **${{ github.workflow }}** workflow failed - - **Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }}) - **Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -156,7 +153,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -221,75 +218,75 @@ Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-evenf]: https://github.com/stdlib-js/math-base-assert-is-evenf +[@stdlib/math/base/assert/is-evenf]: https://github.com/stdlib-js/math-base-assert-is-evenf/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-integerf]: https://github.com/stdlib-js/math-base-assert-is-integerf +[@stdlib/math/base/assert/is-integerf]: https://github.com/stdlib-js/math-base-assert-is-integerf/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-integerf]: https://github.com/stdlib-js/math-base-assert-is-negative-integerf +[@stdlib/math/base/assert/is-negative-integerf]: https://github.com/stdlib-js/math-base-assert-is-negative-integerf/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integerf]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integerf +[@stdlib/math/base/assert/is-nonnegative-integerf]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integerf/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-oddf]: https://github.com/stdlib-js/math-base-assert-is-oddf +[@stdlib/math/base/assert/is-oddf]: https://github.com/stdlib-js/math-base-assert-is-oddf/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-probabilityf]: https://github.com/stdlib-js/math-base-assert-is-probabilityf +[@stdlib/math/base/assert/is-probabilityf]: https://github.com/stdlib-js/math-base-assert-is-probabilityf/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 93392a1..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isEvenf",require('@stdlib/math-base-assert-is-evenf/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isIntegerf",require('@stdlib/math-base-assert-is-integerf/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeIntegerf",require('@stdlib/math-base-assert-is-negative-integerf/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonnegativeIntegerf",require('@stdlib/math-base-assert-is-nonnegative-integerf/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isOddf",require('@stdlib/math-base-assert-is-oddf/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isProbabilityf",require('@stdlib/math-base-assert-is-probabilityf/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 553b4e9..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nsetReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nsetReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nsetReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nsetReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nsetReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nsetReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,qBAAsB,QAAS,+CAAgD,CAAE,EASlGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,wBAAyB,QAAS,kDAAmD,CAAE,EASxGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,iBAAkB,QAAS,0CAA2C,CAAE,EASzFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..bcc8e6d --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2026 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.3-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";export{default as isEvenf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";export{default as isIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";export{default as isNegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";export{default as isNonnegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";export{default as isOddf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";import E from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";import O from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";import S from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";import U from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";export{default as isProbabilityf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";import k from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";import q from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";var A={};s(A,"isEvenInt32",e),s(A,"isOddInt32",t),s(A,"isComposite",i),s(A,"isCoprime",n),s(A,"isEven",r),s(A,"isEvenf",d),s(A,"isFinite",a),s(A,"isFinitef",m),s(A,"isInfinite",o),s(A,"isInfinitef",j),s(A,"isInteger",h),s(A,"isIntegerf",v),s(A,"isnan",l),s(A,"isnanf",f),s(A,"isNegativeFinite",p),s(A,"isNegativeInteger",b),s(A,"isNegativeIntegerf",g),s(A,"isNegativeZero",x),s(A,"isNegativeZerof",c),s(A,"isNonNegativeFinite",u),s(A,"isNonNegativeInteger",I),s(A,"isNonnegativeIntegerf",N),s(A,"isNonPositiveFinite",P),s(A,"isNonPositiveInteger",F),s(A,"isOdd",y),s(A,"isOddf",z),s(A,"isPositiveFinite",Z),s(A,"isPositiveInteger",E),s(A,"isPositiveZero",O),s(A,"isPositiveZerof",w),s(A,"isPrime",C),s(A,"isProbability",S),s(A,"isProbabilityf",U),s(A,"isSafeInteger",k),s(A,"isPow2Uint32",q);export{A as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..d82b9be --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nimport isEvenf from '@stdlib/math-base-assert-is-evenf';\nsetReadOnly( ns, 'isEvenf', isEvenf );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nimport isIntegerf from '@stdlib/math-base-assert-is-integerf';\nsetReadOnly( ns, 'isIntegerf', isIntegerf );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nimport isNegativeIntegerf from '@stdlib/math-base-assert-is-negative-integerf';\nsetReadOnly( ns, 'isNegativeIntegerf', isNegativeIntegerf );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nimport isNonnegativeIntegerf from '@stdlib/math-base-assert-is-nonnegative-integerf';\nsetReadOnly( ns, 'isNonnegativeIntegerf', isNonnegativeIntegerf );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nimport isOddf from '@stdlib/math-base-assert-is-oddf';\nsetReadOnly( ns, 'isOddf', isOddf );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nimport isProbabilityf from '@stdlib/math-base-assert-is-probabilityf';\nsetReadOnly( ns, 'isProbabilityf', isProbabilityf );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isEvenf","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isIntegerf","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeIntegerf","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonnegativeIntegerf","isNonPositiveFinite","isNonPositiveInteger","isOdd","isOddf","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isProbabilityf","isSafeInteger","isPow2Uint32"],"mappings":";;6mQAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,UAAAO,GAUAN,EAAAD,EAAA,WAAAQ,GAUAP,EAAAD,EAAA,YAAAS,GAUAR,EAAAD,EAAA,aAAAU,GAUAT,EAAAD,EAAA,cAAAW,GAUAV,EAAAD,EAAA,YAAAY,GAUAX,EAAAD,EAAA,aAAAa,GAUAZ,EAAAD,EAAA,QAAAc,GAUAb,EAAAD,EAAA,SAAAe,GAUAd,EAAAD,EAAA,mBAAAgB,GAUAf,EAAAD,EAAA,oBAAAiB,GAUAhB,EAAAD,EAAA,qBAAAkB,GAUAjB,EAAAD,EAAA,iBAAAmB,GAUAlB,EAAAD,EAAA,kBAAAoB,GAUAnB,EAAAD,EAAA,sBAAAqB,GAUApB,EAAAD,EAAA,uBAAAsB,GAUArB,EAAAD,EAAA,wBAAAuB,GAUAtB,EAAAD,EAAA,sBAAAwB,GAUAvB,EAAAD,EAAA,uBAAAyB,GAUAxB,EAAAD,EAAA,QAAA0B,GAUAzB,EAAAD,EAAA,SAAA2B,GAUA1B,EAAAD,EAAA,mBAAA4B,GAUA3B,EAAAD,EAAA,oBAAA6B,GAUA5B,EAAAD,EAAA,iBAAA8B,GAUA7B,EAAAD,EAAA,kBAAA+B,GAUA9B,EAAAD,EAAA,UAAAgC,GAUA/B,EAAAD,EAAA,gBAAAiC,GAUAhC,EAAAD,EAAA,iBAAAkC,GAUAjC,EAAAD,EAAA,gBAAAmC,GAUAlC,EAAAD,EAAA,eAAAoC"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 3e4f9c3..0000000 --- a/lib/index.js +++ /dev/null @@ -1,357 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isEvenf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-evenf} -*/ -setReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integerf} -*/ -setReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integerf} -*/ -setReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonnegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf} -*/ -setReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isOddf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-oddf} -*/ -setReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isProbabilityf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probabilityf} -*/ -setReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 575bd22..1fd9df9 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.4.1", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,101 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.3.2", - "@stdlib/math-base-assert-int32-is-odd": "^0.3.2", - "@stdlib/math-base-assert-is-composite": "^0.3.2", - "@stdlib/math-base-assert-is-coprime": "^0.2.3", - "@stdlib/math-base-assert-is-even": "^0.2.5", - "@stdlib/math-base-assert-is-evenf": "^0.1.1", - "@stdlib/math-base-assert-is-finite": "^0.2.3", - "@stdlib/math-base-assert-is-finitef": "^0.2.3", - "@stdlib/math-base-assert-is-infinite": "^0.2.3", - "@stdlib/math-base-assert-is-infinitef": "^0.2.3", - "@stdlib/math-base-assert-is-integer": "^0.2.7", - "@stdlib/math-base-assert-is-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-nan": "^0.2.3", - "@stdlib/math-base-assert-is-nanf": "^0.2.3", - "@stdlib/math-base-assert-is-negative-finite": "^0.3.2", - "@stdlib/math-base-assert-is-negative-integer": "^0.3.2", - "@stdlib/math-base-assert-is-negative-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.3", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.4", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.3.2", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.2", - "@stdlib/math-base-assert-is-nonnegative-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.3.2", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.2.3", - "@stdlib/math-base-assert-is-odd": "^0.3.2", - "@stdlib/math-base-assert-is-oddf": "^0.1.1", - "@stdlib/math-base-assert-is-positive-finite": "^0.3.2", - "@stdlib/math-base-assert-is-positive-integer": "^0.3.2", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.3", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.4", - "@stdlib/math-base-assert-is-prime": "^0.3.2", - "@stdlib/math-base-assert-is-probability": "^0.2.4", - "@stdlib/math-base-assert-is-probabilityf": "^0.1.1", - "@stdlib/math-base-assert-is-safe-integer": "^0.3.2", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.2", - "@stdlib/utils-define-read-only-property": "^0.2.3" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.3", - "@stdlib/boolean-ctor": "^0.2.3", - "@stdlib/console-log-each-map": "^0.1.1", - "@stdlib/constants-float32-max": "^0.2.3", - "@stdlib/constants-float32-ninf": "^0.2.3", - "@stdlib/constants-float32-pinf": "^0.2.3", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.3", - "@stdlib/constants-float64-max": "^0.2.3", - "@stdlib/constants-float64-max-safe-integer": "^0.2.3", - "@stdlib/constants-float64-min-safe-integer": "^0.2.3", - "@stdlib/constants-float64-ninf": "^0.2.3", - "@stdlib/constants-float64-pinf": "^0.2.3", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.3", - "@stdlib/constants-int32-max": "^0.3.1", - "@stdlib/datasets-primes-100k": "^0.2.3", - "@stdlib/math-base-special-floor": "^0.2.4", - "@stdlib/math-base-special-floorf": "^0.2.3", - "@stdlib/math-base-special-gcd": "^0.3.2", - "@stdlib/math-base-special-log10": "^0.3.1", - "@stdlib/math-base-special-log2": "^0.3.1", - "@stdlib/math-base-special-pow": "^0.3.1", - "@stdlib/math-base-special-round": "^0.3.1", - "@stdlib/math-base-special-roundf": "^0.1.1", - "@stdlib/math-base-special-sqrt": "^0.2.3", - "@stdlib/math-base-special-trunc": "^0.2.3", - "@stdlib/math-base-special-truncf": "^0.2.3", - "@stdlib/number-ctor": "^0.2.3", - "@stdlib/number-float64-base-to-float32": "^0.2.3", - "@stdlib/random-array-discrete-uniform": "^0.2.2", - "@stdlib/random-array-uniform": "^0.2.2", - "@stdlib/random-base-discrete-uniform": "^0.2.2", - "@stdlib/random-base-randu": "^0.2.3", - "@stdlib/random-base-uniform": "^0.2.3", - "@stdlib/error-tools-fmtprodmsg": "^0.2.3", - "@stdlib/utils-keys": "^0.2.3", - "@stdlib/utils-try-require": "^0.2.3", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.3" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..74aed14 --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index ecdba25..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.strictEqual( keys.length > 0, true, 'has keys' ); - t.end(); -}); From 80954564c07fc2d826d20b81b03a0c6d5709ae13 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 13 Jun 2026 03:40:44 +0000 Subject: [PATCH 182/190] Transform error messages --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a744605..575bd22 100644 --- a/package.json +++ b/package.json @@ -107,7 +107,7 @@ "@stdlib/random-base-discrete-uniform": "^0.2.2", "@stdlib/random-base-randu": "^0.2.3", "@stdlib/random-base-uniform": "^0.2.3", - "@stdlib/string-format": "^0.2.3", + "@stdlib/error-tools-fmtprodmsg": "^0.2.3", "@stdlib/utils-keys": "^0.2.3", "@stdlib/utils-try-require": "^0.2.3", "tape": "git+https://github.com/kgryte/tape.git#fix/globby", From 070776bf0e129986079ecf644ced9462180e2f2f Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 13 Jun 2026 03:57:41 +0000 Subject: [PATCH 183/190] Remove files --- index.d.ts | 860 --------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4842 ------------------------------------------------- 4 files changed, 5707 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 13746bd..0000000 --- a/index.d.ts +++ /dev/null @@ -1,860 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isEvenf = require( '@stdlib/math-base-assert-is-evenf' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isIntegerf = require( '@stdlib/math-base-assert-is-integerf' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeIntegerf = require( '@stdlib/math-base-assert-is-negative-integerf' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonnegativeIntegerf = require( '@stdlib/math-base-assert-is-nonnegative-integerf' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isOddf = require( '@stdlib/math-base-assert-is-oddf' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isProbabilityf = require( '@stdlib/math-base-assert-is-probabilityf' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a finite single-precision floating-point number is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEvenf( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEvenf( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEvenf( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEvenf( NaN ); - * // returns false - */ - isEvenf: typeof isEvenf; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e24 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a finite single-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isIntegerf( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isIntegerf( 3.14 ); - * // returns false - */ - isIntegerf: typeof isIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a finite single-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeIntegerf( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeIntegerf( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeIntegerf( 10.0 ); - * // returns false - */ - isNegativeIntegerf: typeof isNegativeIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a finite single-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonnegativeIntegerf( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonnegativeIntegerf( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonnegativeIntegerf( -10.0 ); - * // returns false - */ - isNonnegativeIntegerf: typeof isNonnegativeIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a finite single-precision floating-point number is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOddf( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOddf( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOddf( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOddf( NaN ); - * // returns false - */ - isOddf: typeof isOddf; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a single-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbabilityf( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbabilityf( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbabilityf( NaN ); - * // returns false - */ - isProbabilityf: typeof isProbabilityf; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index bcc8e6d..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2026 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.3-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";export{default as isEvenf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";export{default as isIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";export{default as isNegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";export{default as isNonnegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";export{default as isOddf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";import E from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";import O from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";import S from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";import U from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";export{default as isProbabilityf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";import k from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";import q from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";var A={};s(A,"isEvenInt32",e),s(A,"isOddInt32",t),s(A,"isComposite",i),s(A,"isCoprime",n),s(A,"isEven",r),s(A,"isEvenf",d),s(A,"isFinite",a),s(A,"isFinitef",m),s(A,"isInfinite",o),s(A,"isInfinitef",j),s(A,"isInteger",h),s(A,"isIntegerf",v),s(A,"isnan",l),s(A,"isnanf",f),s(A,"isNegativeFinite",p),s(A,"isNegativeInteger",b),s(A,"isNegativeIntegerf",g),s(A,"isNegativeZero",x),s(A,"isNegativeZerof",c),s(A,"isNonNegativeFinite",u),s(A,"isNonNegativeInteger",I),s(A,"isNonnegativeIntegerf",N),s(A,"isNonPositiveFinite",P),s(A,"isNonPositiveInteger",F),s(A,"isOdd",y),s(A,"isOddf",z),s(A,"isPositiveFinite",Z),s(A,"isPositiveInteger",E),s(A,"isPositiveZero",O),s(A,"isPositiveZerof",w),s(A,"isPrime",C),s(A,"isProbability",S),s(A,"isProbabilityf",U),s(A,"isSafeInteger",k),s(A,"isPow2Uint32",q);export{A as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index d82b9be..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nimport isEvenf from '@stdlib/math-base-assert-is-evenf';\nsetReadOnly( ns, 'isEvenf', isEvenf );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nimport isIntegerf from '@stdlib/math-base-assert-is-integerf';\nsetReadOnly( ns, 'isIntegerf', isIntegerf );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nimport isNegativeIntegerf from '@stdlib/math-base-assert-is-negative-integerf';\nsetReadOnly( ns, 'isNegativeIntegerf', isNegativeIntegerf );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nimport isNonnegativeIntegerf from '@stdlib/math-base-assert-is-nonnegative-integerf';\nsetReadOnly( ns, 'isNonnegativeIntegerf', isNonnegativeIntegerf );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nimport isOddf from '@stdlib/math-base-assert-is-oddf';\nsetReadOnly( ns, 'isOddf', isOddf );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nimport isProbabilityf from '@stdlib/math-base-assert-is-probabilityf';\nsetReadOnly( ns, 'isProbabilityf', isProbabilityf );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isEvenf","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isIntegerf","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeIntegerf","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonnegativeIntegerf","isNonPositiveFinite","isNonPositiveInteger","isOdd","isOddf","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isProbabilityf","isSafeInteger","isPow2Uint32"],"mappings":";;6mQAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,UAAAO,GAUAN,EAAAD,EAAA,WAAAQ,GAUAP,EAAAD,EAAA,YAAAS,GAUAR,EAAAD,EAAA,aAAAU,GAUAT,EAAAD,EAAA,cAAAW,GAUAV,EAAAD,EAAA,YAAAY,GAUAX,EAAAD,EAAA,aAAAa,GAUAZ,EAAAD,EAAA,QAAAc,GAUAb,EAAAD,EAAA,SAAAe,GAUAd,EAAAD,EAAA,mBAAAgB,GAUAf,EAAAD,EAAA,oBAAAiB,GAUAhB,EAAAD,EAAA,qBAAAkB,GAUAjB,EAAAD,EAAA,iBAAAmB,GAUAlB,EAAAD,EAAA,kBAAAoB,GAUAnB,EAAAD,EAAA,sBAAAqB,GAUApB,EAAAD,EAAA,uBAAAsB,GAUArB,EAAAD,EAAA,wBAAAuB,GAUAtB,EAAAD,EAAA,sBAAAwB,GAUAvB,EAAAD,EAAA,uBAAAyB,GAUAxB,EAAAD,EAAA,QAAA0B,GAUAzB,EAAAD,EAAA,SAAA2B,GAUA1B,EAAAD,EAAA,mBAAA4B,GAUA3B,EAAAD,EAAA,oBAAA6B,GAUA5B,EAAAD,EAAA,iBAAA8B,GAUA7B,EAAAD,EAAA,kBAAA+B,GAUA9B,EAAAD,EAAA,UAAAgC,GAUA/B,EAAAD,EAAA,gBAAAiC,GAUAhC,EAAAD,EAAA,iBAAAkC,GAUAjC,EAAAD,EAAA,gBAAAmC,GAUAlC,EAAAD,EAAA,eAAAoC"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 74aed14..0000000 --- a/stats.html +++ /dev/null @@ -1,4842 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From a85cd922c701ee98851dbdc985a51fd51e1118ae Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sat, 13 Jun 2026 03:58:03 +0000 Subject: [PATCH 184/190] Auto-generated commit --- .editorconfig | 189 - .eslintrc.js | 1 - .gitattributes | 68 - .github/.keepalive | 1 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 821 --- .github/workflows/publish.yml | 261 - .github/workflows/test.yml | 101 - .github/workflows/test_bundles.yml | 213 - .github/workflows/test_coverage.yml | 142 - .github/workflows/test_install.yml | 94 - .github/workflows/test_published_package.yml | 115 - .gitignore | 204 - .npmignore | 229 - .npmrc | 44 - CHANGELOG.md | 518 -- CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 113 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 357 -- package.json | 121 +- stats.html | 4842 ++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 41 files changed, 4904 insertions(+), 4663 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/.keepalive delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .github/workflows/test_published_package.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 80f3fca..0000000 --- a/.editorconfig +++ /dev/null @@ -1,189 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim. - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Ignore generated lock files for GitHub Agentic Workflows: -[*.lock.yml] -charset = unset -end_of_line = unset -indent_style = unset -indent_size = unset -trim_trailing_whitespace = unset -insert_final_newline = unset - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 24b327f..0000000 --- a/.gitattributes +++ /dev/null @@ -1,68 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/lib/node_modules/** -linguist-vendored -linguist-generated - -# Configure directories which should *not* be included in GitHub language statistics: -/deps/** linguist-vendored -/dist/** linguist-generated -/workshops/** linguist-vendored - -benchmark/** linguist-vendored -docs/* linguist-documentation -etc/** linguist-vendored -examples/** linguist-documentation -scripts/** linguist-vendored -test/** linguist-vendored -tools/** linguist-vendored - -# Configure files which should *not* be included in GitHub language statistics: -Makefile linguist-vendored -*.mk linguist-vendored -*.jl linguist-vendored -*.py linguist-vendored -*.R linguist-vendored - -# Configure files which should be included in GitHub language statistics: -docs/types/*.d.ts -linguist-documentation - -.github/workflows/*.lock.yml linguist-generated=true merge=ours diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 0c37516..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2026-06-13T03:33:48.570Z diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 21386b4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/contributing/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 83d50c4..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,821 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send notification to Zulip if job fails: - - name: 'Send notification to Zulip in case of failure' - # Pin action to full length commit SHA - uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2 - if: failure() - with: - api-key: ${{ secrets.ZULIP_API_KEY }} - email: 'github-actions-bot@stdlib.zulipchat.com' - organization-url: 'https://stdlib.zulipchat.com' - to: 'workflows-standalone' - type: 'stream' - topic: ${{ github.event.repository.name }} - content: | - :cross_mark: **${{ github.workflow }}** workflow failed - - **Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }}) - **Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -156,7 +153,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -221,75 +218,75 @@ Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-evenf]: https://github.com/stdlib-js/math-base-assert-is-evenf +[@stdlib/math/base/assert/is-evenf]: https://github.com/stdlib-js/math-base-assert-is-evenf/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-integerf]: https://github.com/stdlib-js/math-base-assert-is-integerf +[@stdlib/math/base/assert/is-integerf]: https://github.com/stdlib-js/math-base-assert-is-integerf/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-integerf]: https://github.com/stdlib-js/math-base-assert-is-negative-integerf +[@stdlib/math/base/assert/is-negative-integerf]: https://github.com/stdlib-js/math-base-assert-is-negative-integerf/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integerf]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integerf +[@stdlib/math/base/assert/is-nonnegative-integerf]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integerf/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-oddf]: https://github.com/stdlib-js/math-base-assert-is-oddf +[@stdlib/math/base/assert/is-oddf]: https://github.com/stdlib-js/math-base-assert-is-oddf/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-probabilityf]: https://github.com/stdlib-js/math-base-assert-is-probabilityf +[@stdlib/math/base/assert/is-probabilityf]: https://github.com/stdlib-js/math-base-assert-is-probabilityf/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 93392a1..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isEvenf",require('@stdlib/math-base-assert-is-evenf/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isIntegerf",require('@stdlib/math-base-assert-is-integerf/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeIntegerf",require('@stdlib/math-base-assert-is-negative-integerf/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonnegativeIntegerf",require('@stdlib/math-base-assert-is-nonnegative-integerf/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isOddf",require('@stdlib/math-base-assert-is-oddf/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isProbabilityf",require('@stdlib/math-base-assert-is-probabilityf/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 553b4e9..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nsetReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nsetReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nsetReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nsetReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nsetReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nsetReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,qBAAsB,QAAS,+CAAgD,CAAE,EASlGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,wBAAyB,QAAS,kDAAmD,CAAE,EASxGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,iBAAkB,QAAS,0CAA2C,CAAE,EASzFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..bcc8e6d --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2026 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.3-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";export{default as isEvenf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";export{default as isIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";export{default as isNegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";export{default as isNonnegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";export{default as isOddf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";import E from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";import O from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";import S from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";import U from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";export{default as isProbabilityf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";import k from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";import q from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";var A={};s(A,"isEvenInt32",e),s(A,"isOddInt32",t),s(A,"isComposite",i),s(A,"isCoprime",n),s(A,"isEven",r),s(A,"isEvenf",d),s(A,"isFinite",a),s(A,"isFinitef",m),s(A,"isInfinite",o),s(A,"isInfinitef",j),s(A,"isInteger",h),s(A,"isIntegerf",v),s(A,"isnan",l),s(A,"isnanf",f),s(A,"isNegativeFinite",p),s(A,"isNegativeInteger",b),s(A,"isNegativeIntegerf",g),s(A,"isNegativeZero",x),s(A,"isNegativeZerof",c),s(A,"isNonNegativeFinite",u),s(A,"isNonNegativeInteger",I),s(A,"isNonnegativeIntegerf",N),s(A,"isNonPositiveFinite",P),s(A,"isNonPositiveInteger",F),s(A,"isOdd",y),s(A,"isOddf",z),s(A,"isPositiveFinite",Z),s(A,"isPositiveInteger",E),s(A,"isPositiveZero",O),s(A,"isPositiveZerof",w),s(A,"isPrime",C),s(A,"isProbability",S),s(A,"isProbabilityf",U),s(A,"isSafeInteger",k),s(A,"isPow2Uint32",q);export{A as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..d82b9be --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nimport isEvenf from '@stdlib/math-base-assert-is-evenf';\nsetReadOnly( ns, 'isEvenf', isEvenf );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nimport isIntegerf from '@stdlib/math-base-assert-is-integerf';\nsetReadOnly( ns, 'isIntegerf', isIntegerf );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nimport isNegativeIntegerf from '@stdlib/math-base-assert-is-negative-integerf';\nsetReadOnly( ns, 'isNegativeIntegerf', isNegativeIntegerf );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nimport isNonnegativeIntegerf from '@stdlib/math-base-assert-is-nonnegative-integerf';\nsetReadOnly( ns, 'isNonnegativeIntegerf', isNonnegativeIntegerf );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nimport isOddf from '@stdlib/math-base-assert-is-oddf';\nsetReadOnly( ns, 'isOddf', isOddf );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nimport isProbabilityf from '@stdlib/math-base-assert-is-probabilityf';\nsetReadOnly( ns, 'isProbabilityf', isProbabilityf );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isEvenf","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isIntegerf","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeIntegerf","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonnegativeIntegerf","isNonPositiveFinite","isNonPositiveInteger","isOdd","isOddf","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isProbabilityf","isSafeInteger","isPow2Uint32"],"mappings":";;6mQAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,UAAAO,GAUAN,EAAAD,EAAA,WAAAQ,GAUAP,EAAAD,EAAA,YAAAS,GAUAR,EAAAD,EAAA,aAAAU,GAUAT,EAAAD,EAAA,cAAAW,GAUAV,EAAAD,EAAA,YAAAY,GAUAX,EAAAD,EAAA,aAAAa,GAUAZ,EAAAD,EAAA,QAAAc,GAUAb,EAAAD,EAAA,SAAAe,GAUAd,EAAAD,EAAA,mBAAAgB,GAUAf,EAAAD,EAAA,oBAAAiB,GAUAhB,EAAAD,EAAA,qBAAAkB,GAUAjB,EAAAD,EAAA,iBAAAmB,GAUAlB,EAAAD,EAAA,kBAAAoB,GAUAnB,EAAAD,EAAA,sBAAAqB,GAUApB,EAAAD,EAAA,uBAAAsB,GAUArB,EAAAD,EAAA,wBAAAuB,GAUAtB,EAAAD,EAAA,sBAAAwB,GAUAvB,EAAAD,EAAA,uBAAAyB,GAUAxB,EAAAD,EAAA,QAAA0B,GAUAzB,EAAAD,EAAA,SAAA2B,GAUA1B,EAAAD,EAAA,mBAAA4B,GAUA3B,EAAAD,EAAA,oBAAA6B,GAUA5B,EAAAD,EAAA,iBAAA8B,GAUA7B,EAAAD,EAAA,kBAAA+B,GAUA9B,EAAAD,EAAA,UAAAgC,GAUA/B,EAAAD,EAAA,gBAAAiC,GAUAhC,EAAAD,EAAA,iBAAAkC,GAUAjC,EAAAD,EAAA,gBAAAmC,GAUAlC,EAAAD,EAAA,eAAAoC"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 3e4f9c3..0000000 --- a/lib/index.js +++ /dev/null @@ -1,357 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isEvenf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-evenf} -*/ -setReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integerf} -*/ -setReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integerf} -*/ -setReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonnegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf} -*/ -setReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isOddf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-oddf} -*/ -setReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isProbabilityf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probabilityf} -*/ -setReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 575bd22..1fd9df9 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.4.1", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,101 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.3.2", - "@stdlib/math-base-assert-int32-is-odd": "^0.3.2", - "@stdlib/math-base-assert-is-composite": "^0.3.2", - "@stdlib/math-base-assert-is-coprime": "^0.2.3", - "@stdlib/math-base-assert-is-even": "^0.2.5", - "@stdlib/math-base-assert-is-evenf": "^0.1.1", - "@stdlib/math-base-assert-is-finite": "^0.2.3", - "@stdlib/math-base-assert-is-finitef": "^0.2.3", - "@stdlib/math-base-assert-is-infinite": "^0.2.3", - "@stdlib/math-base-assert-is-infinitef": "^0.2.3", - "@stdlib/math-base-assert-is-integer": "^0.2.7", - "@stdlib/math-base-assert-is-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-nan": "^0.2.3", - "@stdlib/math-base-assert-is-nanf": "^0.2.3", - "@stdlib/math-base-assert-is-negative-finite": "^0.3.2", - "@stdlib/math-base-assert-is-negative-integer": "^0.3.2", - "@stdlib/math-base-assert-is-negative-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.3", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.4", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.3.2", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.2", - "@stdlib/math-base-assert-is-nonnegative-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.3.2", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.2.3", - "@stdlib/math-base-assert-is-odd": "^0.3.2", - "@stdlib/math-base-assert-is-oddf": "^0.1.1", - "@stdlib/math-base-assert-is-positive-finite": "^0.3.2", - "@stdlib/math-base-assert-is-positive-integer": "^0.3.2", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.3", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.4", - "@stdlib/math-base-assert-is-prime": "^0.3.2", - "@stdlib/math-base-assert-is-probability": "^0.2.4", - "@stdlib/math-base-assert-is-probabilityf": "^0.1.1", - "@stdlib/math-base-assert-is-safe-integer": "^0.3.2", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.2", - "@stdlib/utils-define-read-only-property": "^0.2.3" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.3", - "@stdlib/boolean-ctor": "^0.2.3", - "@stdlib/console-log-each-map": "^0.1.1", - "@stdlib/constants-float32-max": "^0.2.3", - "@stdlib/constants-float32-ninf": "^0.2.3", - "@stdlib/constants-float32-pinf": "^0.2.3", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.3", - "@stdlib/constants-float64-max": "^0.2.3", - "@stdlib/constants-float64-max-safe-integer": "^0.2.3", - "@stdlib/constants-float64-min-safe-integer": "^0.2.3", - "@stdlib/constants-float64-ninf": "^0.2.3", - "@stdlib/constants-float64-pinf": "^0.2.3", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.3", - "@stdlib/constants-int32-max": "^0.3.1", - "@stdlib/datasets-primes-100k": "^0.2.3", - "@stdlib/math-base-special-floor": "^0.2.4", - "@stdlib/math-base-special-floorf": "^0.2.3", - "@stdlib/math-base-special-gcd": "^0.3.2", - "@stdlib/math-base-special-log10": "^0.3.1", - "@stdlib/math-base-special-log2": "^0.3.1", - "@stdlib/math-base-special-pow": "^0.3.1", - "@stdlib/math-base-special-round": "^0.3.1", - "@stdlib/math-base-special-roundf": "^0.1.1", - "@stdlib/math-base-special-sqrt": "^0.2.3", - "@stdlib/math-base-special-trunc": "^0.2.3", - "@stdlib/math-base-special-truncf": "^0.2.3", - "@stdlib/number-ctor": "^0.2.3", - "@stdlib/number-float64-base-to-float32": "^0.2.3", - "@stdlib/random-array-discrete-uniform": "^0.2.2", - "@stdlib/random-array-uniform": "^0.2.2", - "@stdlib/random-base-discrete-uniform": "^0.2.2", - "@stdlib/random-base-randu": "^0.2.3", - "@stdlib/random-base-uniform": "^0.2.3", - "@stdlib/error-tools-fmtprodmsg": "^0.2.3", - "@stdlib/utils-keys": "^0.2.3", - "@stdlib/utils-try-require": "^0.2.3", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.3" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..74aed14 --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index ecdba25..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.strictEqual( keys.length > 0, true, 'has keys' ); - t.end(); -}); From b69e77947cb92c554a05b4791b7b77513ac524d1 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Tue, 16 Jun 2026 03:46:49 +0000 Subject: [PATCH 185/190] Transform error messages --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a744605..575bd22 100644 --- a/package.json +++ b/package.json @@ -107,7 +107,7 @@ "@stdlib/random-base-discrete-uniform": "^0.2.2", "@stdlib/random-base-randu": "^0.2.3", "@stdlib/random-base-uniform": "^0.2.3", - "@stdlib/string-format": "^0.2.3", + "@stdlib/error-tools-fmtprodmsg": "^0.2.3", "@stdlib/utils-keys": "^0.2.3", "@stdlib/utils-try-require": "^0.2.3", "tape": "git+https://github.com/kgryte/tape.git#fix/globby", From 8e159ccbf22d4f68b85add3787649d607d396dcb Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Tue, 16 Jun 2026 04:01:11 +0000 Subject: [PATCH 186/190] Remove files --- index.d.ts | 860 --------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4842 ------------------------------------------------- 4 files changed, 5707 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index 13746bd..0000000 --- a/index.d.ts +++ /dev/null @@ -1,860 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isEvenf = require( '@stdlib/math-base-assert-is-evenf' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isIntegerf = require( '@stdlib/math-base-assert-is-integerf' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeIntegerf = require( '@stdlib/math-base-assert-is-negative-integerf' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonnegativeIntegerf = require( '@stdlib/math-base-assert-is-nonnegative-integerf' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isOddf = require( '@stdlib/math-base-assert-is-oddf' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isProbabilityf = require( '@stdlib/math-base-assert-is-probabilityf' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a finite single-precision floating-point number is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEvenf( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEvenf( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEvenf( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEvenf( NaN ); - * // returns false - */ - isEvenf: typeof isEvenf; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e24 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a finite single-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isIntegerf( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isIntegerf( 3.14 ); - * // returns false - */ - isIntegerf: typeof isIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a finite single-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeIntegerf( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeIntegerf( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeIntegerf( 10.0 ); - * // returns false - */ - isNegativeIntegerf: typeof isNegativeIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a finite single-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonnegativeIntegerf( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonnegativeIntegerf( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonnegativeIntegerf( -10.0 ); - * // returns false - */ - isNonnegativeIntegerf: typeof isNonnegativeIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a finite single-precision floating-point number is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOddf( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOddf( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOddf( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOddf( NaN ); - * // returns false - */ - isOddf: typeof isOddf; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a single-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbabilityf( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbabilityf( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbabilityf( NaN ); - * // returns false - */ - isProbabilityf: typeof isProbabilityf; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests whether an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index bcc8e6d..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2026 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.3-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";export{default as isEvenf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";export{default as isIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";export{default as isNegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";export{default as isNonnegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";export{default as isOddf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";import E from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";import O from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";import S from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";import U from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";export{default as isProbabilityf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";import k from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";import q from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";var A={};s(A,"isEvenInt32",e),s(A,"isOddInt32",t),s(A,"isComposite",i),s(A,"isCoprime",n),s(A,"isEven",r),s(A,"isEvenf",d),s(A,"isFinite",a),s(A,"isFinitef",m),s(A,"isInfinite",o),s(A,"isInfinitef",j),s(A,"isInteger",h),s(A,"isIntegerf",v),s(A,"isnan",l),s(A,"isnanf",f),s(A,"isNegativeFinite",p),s(A,"isNegativeInteger",b),s(A,"isNegativeIntegerf",g),s(A,"isNegativeZero",x),s(A,"isNegativeZerof",c),s(A,"isNonNegativeFinite",u),s(A,"isNonNegativeInteger",I),s(A,"isNonnegativeIntegerf",N),s(A,"isNonPositiveFinite",P),s(A,"isNonPositiveInteger",F),s(A,"isOdd",y),s(A,"isOddf",z),s(A,"isPositiveFinite",Z),s(A,"isPositiveInteger",E),s(A,"isPositiveZero",O),s(A,"isPositiveZerof",w),s(A,"isPrime",C),s(A,"isProbability",S),s(A,"isProbabilityf",U),s(A,"isSafeInteger",k),s(A,"isPow2Uint32",q);export{A as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index d82b9be..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nimport isEvenf from '@stdlib/math-base-assert-is-evenf';\nsetReadOnly( ns, 'isEvenf', isEvenf );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nimport isIntegerf from '@stdlib/math-base-assert-is-integerf';\nsetReadOnly( ns, 'isIntegerf', isIntegerf );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nimport isNegativeIntegerf from '@stdlib/math-base-assert-is-negative-integerf';\nsetReadOnly( ns, 'isNegativeIntegerf', isNegativeIntegerf );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nimport isNonnegativeIntegerf from '@stdlib/math-base-assert-is-nonnegative-integerf';\nsetReadOnly( ns, 'isNonnegativeIntegerf', isNonnegativeIntegerf );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nimport isOddf from '@stdlib/math-base-assert-is-oddf';\nsetReadOnly( ns, 'isOddf', isOddf );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nimport isProbabilityf from '@stdlib/math-base-assert-is-probabilityf';\nsetReadOnly( ns, 'isProbabilityf', isProbabilityf );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isEvenf","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isIntegerf","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeIntegerf","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonnegativeIntegerf","isNonPositiveFinite","isNonPositiveInteger","isOdd","isOddf","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isProbabilityf","isSafeInteger","isPow2Uint32"],"mappings":";;6mQAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,UAAAO,GAUAN,EAAAD,EAAA,WAAAQ,GAUAP,EAAAD,EAAA,YAAAS,GAUAR,EAAAD,EAAA,aAAAU,GAUAT,EAAAD,EAAA,cAAAW,GAUAV,EAAAD,EAAA,YAAAY,GAUAX,EAAAD,EAAA,aAAAa,GAUAZ,EAAAD,EAAA,QAAAc,GAUAb,EAAAD,EAAA,SAAAe,GAUAd,EAAAD,EAAA,mBAAAgB,GAUAf,EAAAD,EAAA,oBAAAiB,GAUAhB,EAAAD,EAAA,qBAAAkB,GAUAjB,EAAAD,EAAA,iBAAAmB,GAUAlB,EAAAD,EAAA,kBAAAoB,GAUAnB,EAAAD,EAAA,sBAAAqB,GAUApB,EAAAD,EAAA,uBAAAsB,GAUArB,EAAAD,EAAA,wBAAAuB,GAUAtB,EAAAD,EAAA,sBAAAwB,GAUAvB,EAAAD,EAAA,uBAAAyB,GAUAxB,EAAAD,EAAA,QAAA0B,GAUAzB,EAAAD,EAAA,SAAA2B,GAUA1B,EAAAD,EAAA,mBAAA4B,GAUA3B,EAAAD,EAAA,oBAAA6B,GAUA5B,EAAAD,EAAA,iBAAA8B,GAUA7B,EAAAD,EAAA,kBAAA+B,GAUA9B,EAAAD,EAAA,UAAAgC,GAUA/B,EAAAD,EAAA,gBAAAiC,GAUAhC,EAAAD,EAAA,iBAAAkC,GAUAjC,EAAAD,EAAA,gBAAAmC,GAUAlC,EAAAD,EAAA,eAAAoC"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 74aed14..0000000 --- a/stats.html +++ /dev/null @@ -1,4842 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From 53a6dd4712eeefedf64eb49374a3d6adda4e5664 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Tue, 16 Jun 2026 04:01:42 +0000 Subject: [PATCH 187/190] Auto-generated commit --- .editorconfig | 189 - .eslintrc.js | 1 - .gitattributes | 68 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 821 --- .github/workflows/publish.yml | 261 - .github/workflows/test.yml | 101 - .github/workflows/test_bundles.yml | 213 - .github/workflows/test_coverage.yml | 142 - .github/workflows/test_install.yml | 94 - .github/workflows/test_published_package.yml | 115 - .gitignore | 204 - .npmignore | 229 - .npmrc | 44 - CHANGELOG.md | 520 -- CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 113 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 357 -- package.json | 121 +- stats.html | 4842 ++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 40 files changed, 4904 insertions(+), 4664 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .github/workflows/test_published_package.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 80f3fca..0000000 --- a/.editorconfig +++ /dev/null @@ -1,189 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim. - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Ignore generated lock files for GitHub Agentic Workflows: -[*.lock.yml] -charset = unset -end_of_line = unset -indent_style = unset -indent_size = unset -trim_trailing_whitespace = unset -insert_final_newline = unset - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 24b327f..0000000 --- a/.gitattributes +++ /dev/null @@ -1,68 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/lib/node_modules/** -linguist-vendored -linguist-generated - -# Configure directories which should *not* be included in GitHub language statistics: -/deps/** linguist-vendored -/dist/** linguist-generated -/workshops/** linguist-vendored - -benchmark/** linguist-vendored -docs/* linguist-documentation -etc/** linguist-vendored -examples/** linguist-documentation -scripts/** linguist-vendored -test/** linguist-vendored -tools/** linguist-vendored - -# Configure files which should *not* be included in GitHub language statistics: -Makefile linguist-vendored -*.mk linguist-vendored -*.jl linguist-vendored -*.py linguist-vendored -*.R linguist-vendored - -# Configure files which should be included in GitHub language statistics: -docs/types/*.d.ts -linguist-documentation - -.github/workflows/*.lock.yml linguist-generated=true merge=ours diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 21386b4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/contributing/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 83d50c4..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,821 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send notification to Zulip if job fails: - - name: 'Send notification to Zulip in case of failure' - # Pin action to full length commit SHA - uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2 - if: failure() - with: - api-key: ${{ secrets.ZULIP_API_KEY }} - email: 'github-actions-bot@stdlib.zulipchat.com' - organization-url: 'https://stdlib.zulipchat.com' - to: 'workflows-standalone' - type: 'stream' - topic: ${{ github.event.repository.name }} - content: | - :cross_mark: **${{ github.workflow }}** workflow failed - - **Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }}) - **Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -156,7 +153,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -221,75 +218,75 @@ Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-evenf]: https://github.com/stdlib-js/math-base-assert-is-evenf +[@stdlib/math/base/assert/is-evenf]: https://github.com/stdlib-js/math-base-assert-is-evenf/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-integerf]: https://github.com/stdlib-js/math-base-assert-is-integerf +[@stdlib/math/base/assert/is-integerf]: https://github.com/stdlib-js/math-base-assert-is-integerf/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-integerf]: https://github.com/stdlib-js/math-base-assert-is-negative-integerf +[@stdlib/math/base/assert/is-negative-integerf]: https://github.com/stdlib-js/math-base-assert-is-negative-integerf/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integerf]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integerf +[@stdlib/math/base/assert/is-nonnegative-integerf]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integerf/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-oddf]: https://github.com/stdlib-js/math-base-assert-is-oddf +[@stdlib/math/base/assert/is-oddf]: https://github.com/stdlib-js/math-base-assert-is-oddf/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-probabilityf]: https://github.com/stdlib-js/math-base-assert-is-probabilityf +[@stdlib/math/base/assert/is-probabilityf]: https://github.com/stdlib-js/math-base-assert-is-probabilityf/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 93392a1..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isEvenf",require('@stdlib/math-base-assert-is-evenf/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isIntegerf",require('@stdlib/math-base-assert-is-integerf/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeIntegerf",require('@stdlib/math-base-assert-is-negative-integerf/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonnegativeIntegerf",require('@stdlib/math-base-assert-is-nonnegative-integerf/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isOddf",require('@stdlib/math-base-assert-is-oddf/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isProbabilityf",require('@stdlib/math-base-assert-is-probabilityf/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 553b4e9..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nsetReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nsetReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nsetReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nsetReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nsetReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nsetReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,qBAAsB,QAAS,+CAAgD,CAAE,EASlGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,wBAAyB,QAAS,kDAAmD,CAAE,EASxGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,iBAAkB,QAAS,0CAA2C,CAAE,EASzFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..bcc8e6d --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2026 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.3-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";export{default as isEvenf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";export{default as isIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";export{default as isNegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";export{default as isNonnegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";export{default as isOddf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";import E from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";import O from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";import S from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";import U from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";export{default as isProbabilityf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";import k from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";import q from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";var A={};s(A,"isEvenInt32",e),s(A,"isOddInt32",t),s(A,"isComposite",i),s(A,"isCoprime",n),s(A,"isEven",r),s(A,"isEvenf",d),s(A,"isFinite",a),s(A,"isFinitef",m),s(A,"isInfinite",o),s(A,"isInfinitef",j),s(A,"isInteger",h),s(A,"isIntegerf",v),s(A,"isnan",l),s(A,"isnanf",f),s(A,"isNegativeFinite",p),s(A,"isNegativeInteger",b),s(A,"isNegativeIntegerf",g),s(A,"isNegativeZero",x),s(A,"isNegativeZerof",c),s(A,"isNonNegativeFinite",u),s(A,"isNonNegativeInteger",I),s(A,"isNonnegativeIntegerf",N),s(A,"isNonPositiveFinite",P),s(A,"isNonPositiveInteger",F),s(A,"isOdd",y),s(A,"isOddf",z),s(A,"isPositiveFinite",Z),s(A,"isPositiveInteger",E),s(A,"isPositiveZero",O),s(A,"isPositiveZerof",w),s(A,"isPrime",C),s(A,"isProbability",S),s(A,"isProbabilityf",U),s(A,"isSafeInteger",k),s(A,"isPow2Uint32",q);export{A as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..d82b9be --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nimport isEvenf from '@stdlib/math-base-assert-is-evenf';\nsetReadOnly( ns, 'isEvenf', isEvenf );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nimport isIntegerf from '@stdlib/math-base-assert-is-integerf';\nsetReadOnly( ns, 'isIntegerf', isIntegerf );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nimport isNegativeIntegerf from '@stdlib/math-base-assert-is-negative-integerf';\nsetReadOnly( ns, 'isNegativeIntegerf', isNegativeIntegerf );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nimport isNonnegativeIntegerf from '@stdlib/math-base-assert-is-nonnegative-integerf';\nsetReadOnly( ns, 'isNonnegativeIntegerf', isNonnegativeIntegerf );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nimport isOddf from '@stdlib/math-base-assert-is-oddf';\nsetReadOnly( ns, 'isOddf', isOddf );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nimport isProbabilityf from '@stdlib/math-base-assert-is-probabilityf';\nsetReadOnly( ns, 'isProbabilityf', isProbabilityf );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isEvenf","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isIntegerf","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeIntegerf","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonnegativeIntegerf","isNonPositiveFinite","isNonPositiveInteger","isOdd","isOddf","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isProbabilityf","isSafeInteger","isPow2Uint32"],"mappings":";;6mQAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,UAAAO,GAUAN,EAAAD,EAAA,WAAAQ,GAUAP,EAAAD,EAAA,YAAAS,GAUAR,EAAAD,EAAA,aAAAU,GAUAT,EAAAD,EAAA,cAAAW,GAUAV,EAAAD,EAAA,YAAAY,GAUAX,EAAAD,EAAA,aAAAa,GAUAZ,EAAAD,EAAA,QAAAc,GAUAb,EAAAD,EAAA,SAAAe,GAUAd,EAAAD,EAAA,mBAAAgB,GAUAf,EAAAD,EAAA,oBAAAiB,GAUAhB,EAAAD,EAAA,qBAAAkB,GAUAjB,EAAAD,EAAA,iBAAAmB,GAUAlB,EAAAD,EAAA,kBAAAoB,GAUAnB,EAAAD,EAAA,sBAAAqB,GAUApB,EAAAD,EAAA,uBAAAsB,GAUArB,EAAAD,EAAA,wBAAAuB,GAUAtB,EAAAD,EAAA,sBAAAwB,GAUAvB,EAAAD,EAAA,uBAAAyB,GAUAxB,EAAAD,EAAA,QAAA0B,GAUAzB,EAAAD,EAAA,SAAA2B,GAUA1B,EAAAD,EAAA,mBAAA4B,GAUA3B,EAAAD,EAAA,oBAAA6B,GAUA5B,EAAAD,EAAA,iBAAA8B,GAUA7B,EAAAD,EAAA,kBAAA+B,GAUA9B,EAAAD,EAAA,UAAAgC,GAUA/B,EAAAD,EAAA,gBAAAiC,GAUAhC,EAAAD,EAAA,iBAAAkC,GAUAjC,EAAAD,EAAA,gBAAAmC,GAUAlC,EAAAD,EAAA,eAAAoC"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 3e4f9c3..0000000 --- a/lib/index.js +++ /dev/null @@ -1,357 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isEvenf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-evenf} -*/ -setReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integerf} -*/ -setReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integerf} -*/ -setReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonnegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf} -*/ -setReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isOddf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-oddf} -*/ -setReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isProbabilityf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probabilityf} -*/ -setReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 575bd22..1fd9df9 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.4.1", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,101 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.3.2", - "@stdlib/math-base-assert-int32-is-odd": "^0.3.2", - "@stdlib/math-base-assert-is-composite": "^0.3.2", - "@stdlib/math-base-assert-is-coprime": "^0.2.3", - "@stdlib/math-base-assert-is-even": "^0.2.5", - "@stdlib/math-base-assert-is-evenf": "^0.1.1", - "@stdlib/math-base-assert-is-finite": "^0.2.3", - "@stdlib/math-base-assert-is-finitef": "^0.2.3", - "@stdlib/math-base-assert-is-infinite": "^0.2.3", - "@stdlib/math-base-assert-is-infinitef": "^0.2.3", - "@stdlib/math-base-assert-is-integer": "^0.2.7", - "@stdlib/math-base-assert-is-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-nan": "^0.2.3", - "@stdlib/math-base-assert-is-nanf": "^0.2.3", - "@stdlib/math-base-assert-is-negative-finite": "^0.3.2", - "@stdlib/math-base-assert-is-negative-integer": "^0.3.2", - "@stdlib/math-base-assert-is-negative-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.3", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.4", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.3.2", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.2", - "@stdlib/math-base-assert-is-nonnegative-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.3.2", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.2.3", - "@stdlib/math-base-assert-is-odd": "^0.3.2", - "@stdlib/math-base-assert-is-oddf": "^0.1.1", - "@stdlib/math-base-assert-is-positive-finite": "^0.3.2", - "@stdlib/math-base-assert-is-positive-integer": "^0.3.2", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.3", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.4", - "@stdlib/math-base-assert-is-prime": "^0.3.2", - "@stdlib/math-base-assert-is-probability": "^0.2.4", - "@stdlib/math-base-assert-is-probabilityf": "^0.1.1", - "@stdlib/math-base-assert-is-safe-integer": "^0.3.2", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.2", - "@stdlib/utils-define-read-only-property": "^0.2.3" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.3", - "@stdlib/boolean-ctor": "^0.2.3", - "@stdlib/console-log-each-map": "^0.1.1", - "@stdlib/constants-float32-max": "^0.2.3", - "@stdlib/constants-float32-ninf": "^0.2.3", - "@stdlib/constants-float32-pinf": "^0.2.3", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.3", - "@stdlib/constants-float64-max": "^0.2.3", - "@stdlib/constants-float64-max-safe-integer": "^0.2.3", - "@stdlib/constants-float64-min-safe-integer": "^0.2.3", - "@stdlib/constants-float64-ninf": "^0.2.3", - "@stdlib/constants-float64-pinf": "^0.2.3", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.3", - "@stdlib/constants-int32-max": "^0.3.1", - "@stdlib/datasets-primes-100k": "^0.2.3", - "@stdlib/math-base-special-floor": "^0.2.4", - "@stdlib/math-base-special-floorf": "^0.2.3", - "@stdlib/math-base-special-gcd": "^0.3.2", - "@stdlib/math-base-special-log10": "^0.3.1", - "@stdlib/math-base-special-log2": "^0.3.1", - "@stdlib/math-base-special-pow": "^0.3.1", - "@stdlib/math-base-special-round": "^0.3.1", - "@stdlib/math-base-special-roundf": "^0.1.1", - "@stdlib/math-base-special-sqrt": "^0.2.3", - "@stdlib/math-base-special-trunc": "^0.2.3", - "@stdlib/math-base-special-truncf": "^0.2.3", - "@stdlib/number-ctor": "^0.2.3", - "@stdlib/number-float64-base-to-float32": "^0.2.3", - "@stdlib/random-array-discrete-uniform": "^0.2.2", - "@stdlib/random-array-uniform": "^0.2.2", - "@stdlib/random-base-discrete-uniform": "^0.2.2", - "@stdlib/random-base-randu": "^0.2.3", - "@stdlib/random-base-uniform": "^0.2.3", - "@stdlib/error-tools-fmtprodmsg": "^0.2.3", - "@stdlib/utils-keys": "^0.2.3", - "@stdlib/utils-try-require": "^0.2.3", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.3" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..74aed14 --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index ecdba25..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.strictEqual( keys.length > 0, true, 'has keys' ); - t.end(); -}); From ac4ccb0b0037abefa363d0871a4ac7619ca90532 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Tue, 16 Jun 2026 04:23:15 +0000 Subject: [PATCH 188/190] Transform error messages --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a744605..575bd22 100644 --- a/package.json +++ b/package.json @@ -107,7 +107,7 @@ "@stdlib/random-base-discrete-uniform": "^0.2.2", "@stdlib/random-base-randu": "^0.2.3", "@stdlib/random-base-uniform": "^0.2.3", - "@stdlib/string-format": "^0.2.3", + "@stdlib/error-tools-fmtprodmsg": "^0.2.3", "@stdlib/utils-keys": "^0.2.3", "@stdlib/utils-try-require": "^0.2.3", "tape": "git+https://github.com/kgryte/tape.git#fix/globby", From e9c9a986a13501d0e0a6738440d2ecf6a9cf4a95 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Tue, 16 Jun 2026 04:29:17 +0000 Subject: [PATCH 189/190] Remove files --- index.d.ts | 860 --------- index.mjs | 4 - index.mjs.map | 1 - stats.html | 4842 ------------------------------------------------- 4 files changed, 5707 deletions(-) delete mode 100644 index.d.ts delete mode 100644 index.mjs delete mode 100644 index.mjs.map delete mode 100644 stats.html diff --git a/index.d.ts b/index.d.ts deleted file mode 100644 index a638662..0000000 --- a/index.d.ts +++ /dev/null @@ -1,860 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// TypeScript Version: 4.1 - -/* eslint-disable max-lines */ - -import isEvenInt32 = require( '@stdlib/math-base-assert-int32-is-even' ); -import isOddInt32 = require( '@stdlib/math-base-assert-int32-is-odd' ); -import isComposite = require( '@stdlib/math-base-assert-is-composite' ); -import isCoprime = require( '@stdlib/math-base-assert-is-coprime' ); -import isEven = require( '@stdlib/math-base-assert-is-even' ); -import isEvenf = require( '@stdlib/math-base-assert-is-evenf' ); -import isFinite = require( '@stdlib/math-base-assert-is-finite' ); -import isFinitef = require( '@stdlib/math-base-assert-is-finitef' ); -import isInfinite = require( '@stdlib/math-base-assert-is-infinite' ); -import isInfinitef = require( '@stdlib/math-base-assert-is-infinitef' ); -import isInteger = require( '@stdlib/math-base-assert-is-integer' ); -import isIntegerf = require( '@stdlib/math-base-assert-is-integerf' ); -import isnan = require( '@stdlib/math-base-assert-is-nan' ); -import isnanf = require( '@stdlib/math-base-assert-is-nanf' ); -import isNegativeFinite = require( '@stdlib/math-base-assert-is-negative-finite' ); -import isNegativeInteger = require( '@stdlib/math-base-assert-is-negative-integer' ); -import isNegativeIntegerf = require( '@stdlib/math-base-assert-is-negative-integerf' ); -import isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' ); -import isNegativeZerof = require( '@stdlib/math-base-assert-is-negative-zerof' ); -import isNonNegativeFinite = require( '@stdlib/math-base-assert-is-nonnegative-finite' ); -import isNonNegativeInteger = require( '@stdlib/math-base-assert-is-nonnegative-integer' ); -import isNonnegativeIntegerf = require( '@stdlib/math-base-assert-is-nonnegative-integerf' ); -import isNonPositiveFinite = require( '@stdlib/math-base-assert-is-nonpositive-finite' ); -import isNonPositiveInteger = require( '@stdlib/math-base-assert-is-nonpositive-integer' ); -import isOdd = require( '@stdlib/math-base-assert-is-odd' ); -import isOddf = require( '@stdlib/math-base-assert-is-oddf' ); -import isPositiveFinite = require( '@stdlib/math-base-assert-is-positive-finite' ); -import isPositiveInteger = require( '@stdlib/math-base-assert-is-positive-integer' ); -import isPositiveZero = require( '@stdlib/math-base-assert-is-positive-zero' ); -import isPositiveZerof = require( '@stdlib/math-base-assert-is-positive-zerof' ); -import isPrime = require( '@stdlib/math-base-assert-is-prime' ); -import isProbability = require( '@stdlib/math-base-assert-is-probability' ); -import isProbabilityf = require( '@stdlib/math-base-assert-is-probabilityf' ); -import isSafeInteger = require( '@stdlib/math-base-assert-is-safe-integer' ); -import isPow2Uint32 = require( '@stdlib/math-base-assert-uint32-is-pow2' ); - -/** -* Interface describing the `assert` namespace. -*/ -interface Namespace { - /** - * Tests if a 32-bit integer is even. - * - * @param x - value to test - * @returns boolean indicating whether the value is even - * - * @example - * var bool = ns.isEvenInt32( 5 ); - * // returns false - * - * @example - * var bool = ns.isEvenInt32( -2 ); - * // returns true - * - * @example - * var bool = ns.isEvenInt32( 0 ); - * // returns true - */ - isEvenInt32: typeof isEvenInt32; - - /** - * Tests if a 32-bit integer is odd. - * - * @param x - value to test - * @returns boolean indicating whether the value is odd - * - * @example - * var bool = ns.isOddInt32( 5 ); - * // returns true - * - * @example - * var bool = ns.isOddInt32( -2 ); - * // returns false - * - * @example - * var bool = ns.isOddInt32( 0 ); - * // returns false - */ - isOddInt32: typeof isOddInt32; - - /** - * Tests if a number is composite. - * - * @param x - value to test - * @returns boolean indicating whether the value is a composite number - * - * @example - * var bool = ns.isComposite( 10.0 ); - * // returns true - * - * @example - * var bool = ns.isComposite( 11.0 ); - * // returns false - */ - isComposite: typeof isComposite; - - /** - * Tests if two numbers are coprime. - * - * @param a - first value - * @param b - second value - * @returns boolean indicating whether the two values are coprime - * - * @example - * var bool = ns.isCoprime( 14.0, 15.0 ); - * // returns true - * - * @example - * var bool = ns.isCoprime( 14.0, 21.0 ); - * // returns false - */ - isCoprime: typeof isCoprime; - - /** - * Tests if a finite numeric value is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEven( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEven( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEven( NaN ); - * // returns false - */ - isEven: typeof isEven; - - /** - * Tests if a finite single-precision floating-point number is an even number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an even number - * - * @example - * var bool = ns.isEvenf( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isEvenf( -2.0 ); - * // returns true - * - * @example - * var bool = ns.isEvenf( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isEvenf( NaN ); - * // returns false - */ - isEvenf: typeof isEvenf; - - /** - * Tests if a double-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinite( -2.0e64 ); - * // returns true - * - * @example - * var bool = ns.isFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinite( -Infinity ); - * // returns false - */ - isFinite: typeof isFinite; - - /** - * Tests if a single-precision floating-point numeric value is finite. - * - * @param x - value to test - * @returns boolean indicating whether the value is finite - * - * @example - * var bool = ns.isFinitef( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( -2.0e24 ); - * // returns true - * - * @example - * var bool = ns.isFinitef( Infinity ); - * // returns false - * - * @example - * var bool = ns.isFinitef( -Infinity ); - * // returns false - */ - isFinitef: typeof isFinitef; - - /** - * Tests if a double-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinite( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinite( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinite( NaN ); - * // returns false - */ - isInfinite: typeof isInfinite; - - /** - * Tests if a single-precision floating-point numeric value is infinite. - * - * @param x - value to test - * @returns boolean indicating whether the value is infinite - * - * @example - * var bool = ns.isInfinitef( Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( -Infinity ); - * // returns true - * - * @example - * var bool = ns.isInfinitef( 5.0 ); - * // returns false - * - * @example - * var bool = ns.isInfinitef( NaN ); - * // returns false - */ - isInfinitef: typeof isInfinitef; - - /** - * Tests if a finite double-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isInteger( 3.14 ); - * // returns false - */ - isInteger: typeof isInteger; - - /** - * Tests if a finite single-precision floating-point number is an integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an integer - * - * @example - * var bool = ns.isIntegerf( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isIntegerf( 3.14 ); - * // returns false - */ - isIntegerf: typeof isIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnan( NaN ); - * // returns true - * - * @example - * var bool = ns.isnan( 7.0 ); - * // returns false - */ - isnan: typeof isnan; - - /** - * Tests if a single-precision floating-point numeric value is `NaN`. - * - * @param x - value to test - * @returns boolean indicating whether the value is `NaN` - * - * @example - * var bool = ns.isnanf( NaN ); - * // returns true - * - * @example - * var bool = ns.isnanf( 7.0 ); - * // returns false - */ - isnanf: typeof isnanf; - - /** - * Tests if a double-precision floating-point numeric value is a negative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative finite number - * - * @example - * var bool = ns.isNegativeFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNegativeFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( 2.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( NaN ); - * // returns false - * - * @example - * var bool = ns.isNegativeFinite( -0.0 ); - * // returns false - */ - isNegativeFinite: typeof isNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeInteger( 10.0 ); - * // returns false - */ - isNegativeInteger: typeof isNegativeInteger; - - /** - * Tests if a finite single-precision floating-point number is a negative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a negative integer - * - * @example - * var bool = ns.isNegativeIntegerf( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeIntegerf( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isNegativeIntegerf( 10.0 ); - * // returns false - */ - isNegativeIntegerf: typeof isNegativeIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZero( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZero( 0.0 ); - * // returns false - */ - isNegativeZero: typeof isNegativeZero; - - /** - * Tests if a single-precision floating-point numeric value is negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is negative zero - * - * @example - * var bool = ns.isNegativeZerof( -0.0 ); - * // returns true - * - * @example - * var bool = ns.isNegativeZerof( 0.0 ); - * // returns false - */ - isNegativeZerof: typeof isNegativeZerof; - - /** - * Tests if a double-precision floating-point numeric value is a nonnegative finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative finite number - * - * @example - * var bool = ns.isNonNegativeFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonNegativeFinite( NaN ); - * // returns false - */ - isNonNegativeFinite: typeof isNonNegativeFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonNegativeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonNegativeInteger( -10.0 ); - * // returns false - */ - isNonNegativeInteger: typeof isNonNegativeInteger; - - /** - * Tests if a finite single-precision floating-point number is a nonnegative integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonnegative integer - * - * @example - * var bool = ns.isNonnegativeIntegerf( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonnegativeIntegerf( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonnegativeIntegerf( -10.0 ); - * // returns false - */ - isNonnegativeIntegerf: typeof isNonnegativeIntegerf; - - /** - * Tests if a double-precision floating-point numeric value is a nonpositive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive finite number - * - * @example - * var bool = ns.isNonPositiveFinite( -3.14 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveFinite( -Infinity ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isNonPositiveFinite( NaN ); - * // returns false - */ - isNonPositiveFinite: typeof isNonPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a nonpositive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - The function does not distinguish between positive and negative zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is a nonpositive integer - * - * @example - * var bool = ns.isNonPositiveInteger( -1.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isNonPositiveInteger( 10.0 ); - * // returns false - */ - isNonPositiveInteger: typeof isNonPositiveInteger; - - /** - * Tests if a finite numeric value is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOdd( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOdd( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOdd( NaN ); - * // returns false - */ - isOdd: typeof isOdd; - - /** - * Tests if a finite single-precision floating-point number is an odd number. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is an odd number - * - * @example - * var bool = ns.isOddf( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isOddf( -2.0 ); - * // returns false - * - * @example - * var bool = ns.isOddf( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isOddf( NaN ); - * // returns false - */ - isOddf: typeof isOddf; - - /** - * Tests if a double-precision floating-point numeric value is a positive finite number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive finite number - * - * @example - * var bool = ns.isPositiveFinite( 5.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 3.14 ); - * // returns true - * - * @example - * var bool = ns.isPositiveFinite( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( Infinity ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( -3.14 ); - * // returns false - * - * @example - * var bool = ns.isPositiveFinite( NaN ); - * // returns false - */ - isPositiveFinite: typeof isPositiveFinite; - - /** - * Tests if a finite double-precision floating-point number is a positive integer. - * - * ## Notes - * - * - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined. - * - * @param x - value to test - * @returns boolean indicating whether the value is a positive integer - * - * @example - * var bool = ns.isPositiveInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveInteger( 0.0 ); - * // returns false - * - * @example - * var bool = ns.isPositiveInteger( -10.0 ); - * // returns false - */ - isPositiveInteger: typeof isPositiveInteger; - - /** - * Tests if a double-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZero( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZero( -0.0 ); - * // returns false - */ - isPositiveZero: typeof isPositiveZero; - - /** - * Tests if a single-precision floating-point numeric value is positive zero. - * - * @param x - value to test - * @returns boolean indicating whether the value is positive zero - * - * @example - * var bool = ns.isPositiveZerof( 0.0 ); - * // returns true - * - * @example - * var bool = ns.isPositiveZerof( -0.0 ); - * // returns false - */ - isPositiveZerof: typeof isPositiveZerof; - - /** - * Tests if a number is prime. - * - * @param x - value to test - * @returns boolean indicating whether the value is a prime number - * - * @example - * var bool = ns.isPrime( 11.0 ); - * // returns true - * - * @example - * var bool = ns.isPrime( 3.14 ); - * // returns false - */ - isPrime: typeof isPrime; - - /** - * Tests if a double-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbability( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbability( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbability( NaN ); - * // returns false - */ - isProbability: typeof isProbability; - - /** - * Tests if a single-precision floating-point number is a probability. - * - * ## Notes - * - * - A probability is defined as a number on the closed interval `[0,1]`. - * - * @param x - value to test - * @returns boolean indicating whether the value is a probability - * - * @example - * var bool = ns.isProbabilityf( 0.5 ); - * // returns true - * - * @example - * var bool = ns.isProbabilityf( 3.14 ); - * // returns false - * - * @example - * var bool = ns.isProbabilityf( NaN ); - * // returns false - */ - isProbabilityf: typeof isProbabilityf; - - /** - * Tests if a finite double-precision floating-point number is a safe integer. - * - * ## Notes - * - * - An integer valued number is "safe" when the number can be exactly represented as a double-precision floating-point number. - * - * @param x - value to test - * @returns boolean indicating whether the value is a safe integer - * - * @example - * var bool = ns.isSafeInteger( 1.0 ); - * // returns true - * - * @example - * var bool = ns.isSafeInteger( 2.0e200 ); - * // returns false - * - * @example - * var bool = ns.isSafeInteger( 3.14 ); - * // returns false - */ - isSafeInteger: typeof isSafeInteger; - - /** - * Tests if an unsigned integer is a power of 2. - * - * @param x - value to test - * @returns boolean indicating whether a value is a power of 2 - * - * @example - * var bool = ns.isPow2Uint32( 2 ); - * // returns true - * - * @example - * var bool = ns.isPow2Uint32( 5 ); - * // returns false - */ - isPow2Uint32: typeof isPow2Uint32; -} - -/** -* Base mathematical assertion utilities. -*/ -declare var ns: Namespace; - - -// EXPORTS // - -export = ns; diff --git a/index.mjs b/index.mjs deleted file mode 100644 index bcc8e6d..0000000 --- a/index.mjs +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2026 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 -/// -import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.3-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";export{default as isEvenf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";export{default as isIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";export{default as isNegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";export{default as isNonnegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";export{default as isOddf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";import E from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";import O from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";import S from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";import U from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";export{default as isProbabilityf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";import k from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";import q from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";var A={};s(A,"isEvenInt32",e),s(A,"isOddInt32",t),s(A,"isComposite",i),s(A,"isCoprime",n),s(A,"isEven",r),s(A,"isEvenf",d),s(A,"isFinite",a),s(A,"isFinitef",m),s(A,"isInfinite",o),s(A,"isInfinitef",j),s(A,"isInteger",h),s(A,"isIntegerf",v),s(A,"isnan",l),s(A,"isnanf",f),s(A,"isNegativeFinite",p),s(A,"isNegativeInteger",b),s(A,"isNegativeIntegerf",g),s(A,"isNegativeZero",x),s(A,"isNegativeZerof",c),s(A,"isNonNegativeFinite",u),s(A,"isNonNegativeInteger",I),s(A,"isNonnegativeIntegerf",N),s(A,"isNonPositiveFinite",P),s(A,"isNonPositiveInteger",F),s(A,"isOdd",y),s(A,"isOddf",z),s(A,"isPositiveFinite",Z),s(A,"isPositiveInteger",E),s(A,"isPositiveZero",O),s(A,"isPositiveZerof",w),s(A,"isPrime",C),s(A,"isProbability",S),s(A,"isProbabilityf",U),s(A,"isSafeInteger",k),s(A,"isPow2Uint32",q);export{A as default}; -//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map deleted file mode 100644 index d82b9be..0000000 --- a/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nimport isEvenf from '@stdlib/math-base-assert-is-evenf';\nsetReadOnly( ns, 'isEvenf', isEvenf );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nimport isIntegerf from '@stdlib/math-base-assert-is-integerf';\nsetReadOnly( ns, 'isIntegerf', isIntegerf );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nimport isNegativeIntegerf from '@stdlib/math-base-assert-is-negative-integerf';\nsetReadOnly( ns, 'isNegativeIntegerf', isNegativeIntegerf );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nimport isNonnegativeIntegerf from '@stdlib/math-base-assert-is-nonnegative-integerf';\nsetReadOnly( ns, 'isNonnegativeIntegerf', isNonnegativeIntegerf );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nimport isOddf from '@stdlib/math-base-assert-is-oddf';\nsetReadOnly( ns, 'isOddf', isOddf );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nimport isProbabilityf from '@stdlib/math-base-assert-is-probabilityf';\nsetReadOnly( ns, 'isProbabilityf', isProbabilityf );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isEvenf","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isIntegerf","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeIntegerf","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonnegativeIntegerf","isNonPositiveFinite","isNonPositiveInteger","isOdd","isOddf","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isProbabilityf","isSafeInteger","isPow2Uint32"],"mappings":";;6mQAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,UAAAO,GAUAN,EAAAD,EAAA,WAAAQ,GAUAP,EAAAD,EAAA,YAAAS,GAUAR,EAAAD,EAAA,aAAAU,GAUAT,EAAAD,EAAA,cAAAW,GAUAV,EAAAD,EAAA,YAAAY,GAUAX,EAAAD,EAAA,aAAAa,GAUAZ,EAAAD,EAAA,QAAAc,GAUAb,EAAAD,EAAA,SAAAe,GAUAd,EAAAD,EAAA,mBAAAgB,GAUAf,EAAAD,EAAA,oBAAAiB,GAUAhB,EAAAD,EAAA,qBAAAkB,GAUAjB,EAAAD,EAAA,iBAAAmB,GAUAlB,EAAAD,EAAA,kBAAAoB,GAUAnB,EAAAD,EAAA,sBAAAqB,GAUApB,EAAAD,EAAA,uBAAAsB,GAUArB,EAAAD,EAAA,wBAAAuB,GAUAtB,EAAAD,EAAA,sBAAAwB,GAUAvB,EAAAD,EAAA,uBAAAyB,GAUAxB,EAAAD,EAAA,QAAA0B,GAUAzB,EAAAD,EAAA,SAAA2B,GAUA1B,EAAAD,EAAA,mBAAA4B,GAUA3B,EAAAD,EAAA,oBAAA6B,GAUA5B,EAAAD,EAAA,iBAAA8B,GAUA7B,EAAAD,EAAA,kBAAA+B,GAUA9B,EAAAD,EAAA,UAAAgC,GAUA/B,EAAAD,EAAA,gBAAAiC,GAUAhC,EAAAD,EAAA,iBAAAkC,GAUAjC,EAAAD,EAAA,gBAAAmC,GAUAlC,EAAAD,EAAA,eAAAoC"} \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 74aed14..0000000 --- a/stats.html +++ /dev/null @@ -1,4842 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - From aae2e475f283d6f647948621e38f49fd28b2fdc3 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Tue, 16 Jun 2026 04:30:06 +0000 Subject: [PATCH 190/190] Auto-generated commit --- .editorconfig | 189 - .eslintrc.js | 1 - .gitattributes | 68 - .github/PULL_REQUEST_TEMPLATE.md | 7 - .github/workflows/benchmark.yml | 64 - .github/workflows/cancel.yml | 57 - .github/workflows/close_pull_requests.yml | 54 - .github/workflows/examples.yml | 64 - .github/workflows/npm_downloads.yml | 112 - .github/workflows/productionize.yml | 821 --- .github/workflows/publish.yml | 261 - .github/workflows/test.yml | 101 - .github/workflows/test_bundles.yml | 213 - .github/workflows/test_coverage.yml | 142 - .github/workflows/test_install.yml | 94 - .github/workflows/test_published_package.yml | 115 - .gitignore | 204 - .npmignore | 229 - .npmrc | 44 - CHANGELOG.md | 521 -- CITATION.cff | 30 - CODE_OF_CONDUCT.md | 3 - CONTRIBUTING.md | 3 - Makefile | 534 -- README.md | 113 +- SECURITY.md | 5 - branches.md | 56 - dist/index.d.ts | 3 - dist/index.js | 3 - dist/index.js.map | 7 - docs/types/test.ts | 29 - examples/index.js | 24 - docs/types/index.d.ts => index.d.ts | 0 index.mjs | 4 + index.mjs.map | 1 + lib/index.js | 357 -- package.json | 121 +- stats.html | 4842 ++++++++++++++++++ test/dist/test.js | 33 - test/test.js | 40 - 40 files changed, 4904 insertions(+), 4665 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintrc.js delete mode 100644 .gitattributes delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/workflows/benchmark.yml delete mode 100644 .github/workflows/cancel.yml delete mode 100644 .github/workflows/close_pull_requests.yml delete mode 100644 .github/workflows/examples.yml delete mode 100644 .github/workflows/npm_downloads.yml delete mode 100644 .github/workflows/productionize.yml delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/test_bundles.yml delete mode 100644 .github/workflows/test_coverage.yml delete mode 100644 .github/workflows/test_install.yml delete mode 100644 .github/workflows/test_published_package.yml delete mode 100644 .gitignore delete mode 100644 .npmignore delete mode 100644 .npmrc delete mode 100644 CHANGELOG.md delete mode 100644 CITATION.cff delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 CONTRIBUTING.md delete mode 100644 Makefile delete mode 100644 SECURITY.md delete mode 100644 branches.md delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.js delete mode 100644 dist/index.js.map delete mode 100644 docs/types/test.ts delete mode 100644 examples/index.js rename docs/types/index.d.ts => index.d.ts (100%) create mode 100644 index.mjs create mode 100644 index.mjs.map delete mode 100644 lib/index.js create mode 100644 stats.html delete mode 100644 test/dist/test.js delete mode 100644 test/test.js diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 80f3fca..0000000 --- a/.editorconfig +++ /dev/null @@ -1,189 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# EditorConfig configuration file (see ). - -# Indicate that this file is a root-level configuration file: -root = true - -# Set properties for all files: -[*] -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -# Set properties for JavaScript files: -[*.{js,js.txt}] -indent_style = tab - -# Set properties for JavaScript ES module files: -[*.{mjs,mjs.txt}] -indent_style = tab - -# Set properties for JavaScript CommonJS files: -[*.{cjs,cjs.txt}] -indent_style = tab - -# Set properties for JSON files: -[*.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `cli_opts.json` files: -[cli_opts.json] -indent_style = tab - -# Set properties for TypeScript files: -[*.ts] -indent_style = tab - -# Set properties for Python files: -[*.{py,py.txt}] -indent_style = space -indent_size = 4 - -# Set properties for Julia files: -[*.{jl,jl.txt}] -indent_style = tab - -# Set properties for R files: -[*.{R,R.txt}] -indent_style = tab - -# Set properties for C files: -[*.{c,c.txt}] -indent_style = tab - -# Set properties for C header files: -[*.{h,h.txt}] -indent_style = tab - -# Set properties for C++ files: -[*.{cpp,cpp.txt}] -indent_style = tab - -# Set properties for C++ header files: -[*.{hpp,hpp.txt}] -indent_style = tab - -# Set properties for Fortran files: -[*.{f,f.txt}] -indent_style = space -indent_size = 2 - -# Set properties for shell files: -[*.{sh,sh.txt}] -indent_style = tab - -# Set properties for AWK files: -[*.{awk,awk.txt}] -indent_style = tab - -# Set properties for HTML files: -[*.{html,html.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for XML files: -[*.{xml,xml.txt}] -indent_style = tab -tab_width = 2 - -# Set properties for CSS files: -[*.{css,css.txt}] -indent_style = tab - -# Set properties for Makefiles: -[Makefile] -indent_style = tab - -[*.{mk,mk.txt}] -indent_style = tab - -# Set properties for Markdown files: -[*.{md,md.txt}] -indent_style = space -indent_size = 4 -trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim. - -# Set properties for `usage.txt` files: -[usage.txt] -indent_style = space -indent_size = 2 - -# Set properties for `repl.txt` files: -[repl.txt] -indent_style = space -indent_size = 4 - -# Set properties for `package.json` files: -[package.{json,json.txt}] -indent_style = space -indent_size = 2 - -# Set properties for `datapackage.json` files: -[datapackage.json] -indent_style = space -indent_size = 2 - -# Set properties for `manifest.json` files: -[manifest.json] -indent_style = space -indent_size = 2 - -# Set properties for `tsconfig.json` files: -[tsconfig.json] -indent_style = space -indent_size = 2 - -# Set properties for LaTeX files: -[*.{tex,tex.txt}] -indent_style = tab - -# Set properties for LaTeX Bibliography files: -[*.{bib,bib.txt}] -indent_style = tab - -# Set properties for YAML files: -[*.{yml,yml.txt}] -indent_style = space -indent_size = 2 - -# Ignore generated lock files for GitHub Agentic Workflows: -[*.lock.yml] -charset = unset -end_of_line = unset -indent_style = unset -indent_size = unset -trim_trailing_whitespace = unset -insert_final_newline = unset - -# Set properties for GYP files: -[binding.gyp] -indent_style = space -indent_size = 2 - -[*.gypi] -indent_style = space -indent_size = 2 - -# Set properties for citation files: -[*.{cff,cff.txt}] -indent_style = space -indent_size = 2 diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 5f30286..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1 +0,0 @@ -/* For the `eslint` rules of this project, consult the main repository at https://github.com/stdlib-js/stdlib */ diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 24b327f..0000000 --- a/.gitattributes +++ /dev/null @@ -1,68 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2017 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Configuration file which assigns attributes to pathnames. -# -# [1]: https://git-scm.com/docs/gitattributes - -# Automatically normalize the line endings of any committed text files: -* text=auto - -# Override line endings for certain files on checkout: -*.crlf.csv text eol=crlf - -# Denote that certain files are binary and should not be modified: -*.png binary -*.jpg binary -*.jpeg binary -*.gif binary -*.ico binary -*.gz binary -*.zip binary -*.7z binary -*.mp3 binary -*.mp4 binary -*.mov binary - -# Override what is considered "vendored" by GitHub's linguist: -/lib/node_modules/** -linguist-vendored -linguist-generated - -# Configure directories which should *not* be included in GitHub language statistics: -/deps/** linguist-vendored -/dist/** linguist-generated -/workshops/** linguist-vendored - -benchmark/** linguist-vendored -docs/* linguist-documentation -etc/** linguist-vendored -examples/** linguist-documentation -scripts/** linguist-vendored -test/** linguist-vendored -tools/** linguist-vendored - -# Configure files which should *not* be included in GitHub language statistics: -Makefile linguist-vendored -*.mk linguist-vendored -*.jl linguist-vendored -*.py linguist-vendored -*.R linguist-vendored - -# Configure files which should be included in GitHub language statistics: -docs/types/*.d.ts -linguist-documentation - -.github/workflows/*.lock.yml linguist-generated=true merge=ours diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 21386b4..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +0,0 @@ - - -We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. - -If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/contributing/development.md) for help on developing stdlib. - -We look forward to receiving your contribution! :smiley: \ No newline at end of file diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml deleted file mode 100644 index e4f10fe..0000000 --- a/.github/workflows/benchmark.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: benchmark - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run benchmarks: - benchmark: - - # Define a display name: - name: 'Run benchmarks' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run benchmarks: - - name: 'Run benchmarks' - run: | - npm run benchmark diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index b5291db..0000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,57 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: cancel - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to cancel existing workflow runs: - cancel: - - # Define a display name: - name: 'Cancel workflow runs' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Time limit: - timeout-minutes: 3 - - # Define the sequence of job steps... - steps: - - # Cancel existing workflow runs: - - name: 'Cancel existing workflow runs' - # Pin action to full length commit SHA - uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1 - with: - workflow_id: >- - benchmark.yml, - examples.yml, - test.yml, - test_coverage.yml, - test_install.yml, - publish.yml - access_token: ${{ github.token }} diff --git a/.github/workflows/close_pull_requests.yml b/.github/workflows/close_pull_requests.yml deleted file mode 100644 index 7922f40..0000000 --- a/.github/workflows/close_pull_requests.yml +++ /dev/null @@ -1,54 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: close_pull_requests - -# Workflow triggers: -on: - pull_request_target: - types: [opened] - -# Workflow jobs: -jobs: - - # Define job to close all pull requests: - run: - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Close pull request - - name: 'Close pull request' - # Pin action to full length commit SHA corresponding to v3.1.2 - uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 - with: - comment: | - Thank you for submitting a pull request. :raised_hands: - - We greatly appreciate your willingness to submit a contribution. However, we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). - - We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert) of the main repository where we’ll review and provide feedback. If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. - - Thank you again, and we look forward to receiving your contribution! :smiley: - - Best, - The stdlib team \ No newline at end of file diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml deleted file mode 100644 index 2984901..0000000 --- a/.github/workflows/examples.yml +++ /dev/null @@ -1,64 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2021 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: examples - -# Workflow triggers: -on: - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job to run the package examples... - examples: - - # Define display name: - name: 'Run examples' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - - # Checkout repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Run examples: - - name: 'Run examples' - run: | - npm run examples diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml deleted file mode 100644 index d806bb1..0000000 --- a/.github/workflows/npm_downloads.yml +++ /dev/null @@ -1,112 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: npm_downloads - -# Workflow triggers: -on: - # Run this workflow weekly: - schedule: - # cron: ' ' - - cron: '22 22 * * 0' - - # Allow the workflow to be manually run: - workflow_dispatch: - -# Workflow jobs: -jobs: - - # Define a job for retrieving npm download counts... - npm_downloads: - - # Define display name: - name: 'Retrieve npm download counts' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - timeout-minutes: 10 - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Resolve package name: - - name: 'Resolve package name' - id: package_name - run: | - name=`node -e 'console.log(require("./package.json").name)' | tr -d '\n'` - echo "package_name=$name" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Fetch download data: - - name: 'Fetch data' - id: download_data - run: | - url="https://api.npmjs.org/downloads/range/$(date --date='1 year ago' '+%Y-%m-%d'):$(date '+%Y-%m-%d')/${{ steps.package_name.outputs.package_name }}" - echo "$url" - data=$(curl "$url") - mkdir ./tmp - echo "$data" > ./tmp/npm_downloads.json - echo "data=$data" >> $GITHUB_OUTPUT - timeout-minutes: 5 - - # Print summary of download data: - - name: 'Print summary' - run: | - echo "| Date | Downloads |" >> $GITHUB_STEP_SUMMARY - echo "|------|------------|" >> $GITHUB_STEP_SUMMARY - cat ./tmp/npm_downloads.json | jq -r ".downloads | .[-14:] | to_entries | map(\"| \(.value.day) | \(.value.downloads) |\") |.[]" >> $GITHUB_STEP_SUMMARY - - # Upload the download data: - - name: 'Upload data' - # Pin action to full length commit SHA - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 - with: - # Define a name for the uploaded artifact (ensuring a unique name for each job): - name: npm_downloads - - # Specify the path to the file to upload: - path: ./tmp/npm_downloads.json - - # Specify the number of days to retain the artifact (default is 90 days): - retention-days: 90 - timeout-minutes: 10 - if: success() - - # Send data to events server: - - name: 'Post data' - # Pin action to full length commit SHA - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 - env: - webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} - webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} - data: '{ "downloads": ${{ steps.download_data.outputs.data }} }' - timeout-minutes: 5 - if: success() diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml deleted file mode 100644 index 83d50c4..0000000 --- a/.github/workflows/productionize.yml +++ /dev/null @@ -1,821 +0,0 @@ -#/ -# @license Apache-2.0 -# -# Copyright (c) 2022 The Stdlib Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -#/ - -# Workflow name: -name: productionize - -# Workflow triggers: -on: - # Run workflow when a new commit is pushed to the main branch: - push: - branches: - - main - - # Allow the workflow to be manually run: - workflow_dispatch: - inputs: - require-passing-tests: - description: 'Require passing tests for creating bundles' - type: boolean - default: true - - # Run workflow upon completion of `publish` workflow run: - workflow_run: - workflows: ["publish"] - types: [completed] - - -# Concurrency group to prevent multiple concurrent executions: -concurrency: - group: productionize - cancel-in-progress: true - -# Workflow jobs: -jobs: - - # Define a job to create a production build... - productionize: - - # Define display name: - name: 'Productionize' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Define the sequence of job steps... - steps: - # Checkout main branch of repository: - - name: 'Checkout main branch' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: main - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Create production branch: - - name: 'Create production branch' - run: | - git checkout -b production - - # Transform error messages: - - name: 'Transform error messages' - id: transform-error-messages - uses: stdlib-js/transform-errors-action@main - - # Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency: - - name: 'Update dependencies in package.json' - run: | - PKG_VERSION=$(npm view @stdlib/error-tools-fmtprodmsg version) - if grep -q '"@stdlib/string-format"' package.json; then - sed -i "s/\"@stdlib\/string-format\": \"^.*\"/\"@stdlib\/error-tools-fmtprodmsg\": \"^$PKG_VERSION\"/g" package.json - else - node -e "var pkg = require( './package.json' ); pkg.dependencies[ '@stdlib/error-tools-fmtprodmsg' ] = '^$PKG_VERSION'; require( 'fs' ).writeFileSync( 'package.json', JSON.stringify( pkg, null, 2 ) );" - fi - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Transform error messages" - - # Push changes: - - name: 'Push changes' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" production --force - - # Define a job for running tests of the productionized code... - test: - - # Define a display name: - name: 'Run Tests' - - # Define the type of virtual host machine: - runs-on: 'ubuntu-latest' - - # Indicate that this job depends on the prior job finishing: - needs: productionize - - # Run this job regardless of the outcome of the prior job: - if: always() - - # Define the sequence of job steps... - steps: - - # Checkout the repository: - - name: 'Checkout repository' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - # Use the `production` branch: - ref: production - - # Install Node.js: - - name: 'Install Node.js' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Build native add-on if present: - - name: 'Build native add-on (if present)' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - run: | - if [ -f "binding.gyp" ]; then - npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild - fi - - # Run tests: - - name: 'Run tests' - if: ${{ github.event.inputs.require-passing-tests == 'true' }} - id: tests - run: | - npm test || npm test || npm test - - # Define job to create a bundle for use in Deno... - deno: - - # Define display name: - name: 'Create Deno bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `deno` branch exists: - - name: 'Check if remote `deno` branch exists' - id: deno-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin deno - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `deno` exists, delete everything in branch and merge `production` into it - - name: 'If `deno` exists, delete everything in branch and merge `production` into it' - if: steps.deno-branch-exists.outputs.remote-exists - run: | - git checkout -b deno origin/deno - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `deno` does not exist, create `deno` branch: - - name: 'If `deno` does not exist, create `deno` branch' - if: ${{ steps.deno-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b deno - - # Copy files to deno directory: - - name: 'Copy files to deno directory' - run: | - mkdir -p deno - cp README.md LICENSE CONTRIBUTORS NOTICE ./deno - - # Copy TypeScript definitions to deno directory: - if [ -d index.d.ts ]; then - cp index.d.ts ./deno/index.d.ts - fi - if [ -e ./docs/types/index.d.ts ]; then - cp ./docs/types/index.d.ts ./deno/mod.d.ts - fi - - # Install Node.js: - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: Install production and development dependencies - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Bundle package for use in Deno: - - name: 'Bundle package for Deno' - id: deno-bundle - uses: stdlib-js/bundle-action@main - with: - target: 'deno' - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - # Replace links to other packages with links to the deno branch: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/deno/"; - - # Replace reference to `@stdlib/types` with CDN link: - find ./deno -type f -name '*.ts' -print0 | xargs -0 -r sed -Ei "s/\/\/\/ /\/\/\/ /g" - - # Change wording of project description to avoid reference to JavaScript and Node.js: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "s/a standard library for JavaScript and Node.js, /a standard library /g" - - # Rewrite all `require()`s to use jsDelivr links: - find ./deno -type f -name '*.md' -print0 | xargs -0 sed -Ei "/require\( '@stdlib\// { - s/(var|let|const)\s+([a-z0-9_]+)\s+=\s*require\( '([^']+)' \);/import \2 from \'\3\';/i - s/@stdlib/https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js/ - s/';/@deno\/mod.js';/ - }" - - # Rewrite first `import` to show importing of named exports if available: - exports=$(cat lib/index.js | \ - grep -E 'setReadOnly\(.*,.*,.*\)' | \ - sed -E 's/setReadOnly\((.*),(.*),(.*)\);/\2/' | \ - sed -E "s/'//g" | \ - sort) - if [ -n "$exports" ]; then - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\nimport\s+([a-zA-Z0-9_]+)\s+from\s*'([^']+)';\n\`\`\`/\`\`\`javascript\nimport \1 from '\2';\n\`\`\`\n\nYou can also import the following named exports from the package:\n\n\`\`\`javascript\nimport { $(echo $exports | sed -E 's/ /, /g') } from '\2';\n\`\`\`/" - fi - - # Remove `installation`, `cli`, and `c` sections: - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./deno -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Create package.json file for deno branch: - jq --indent 2 '{"name": .name, "version": .version, "description": .description, "license": .license, "type": "module", "main": "./mod.js", "homepage": .homepage, "repository": .repository, "bugs": .bugs, "keywords": .keywords, "funding": .funding}' package.json > ./deno/package.json - - # Delete everything in current directory aside from deno folder: - - name: 'Delete everything in current directory aside from deno folder' - run: | - find . -type 'f' | grep -v -e "deno" -e ".git/" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e "deno" -e ".git" | xargs -r rm -rf - - # Move deno directory to root: - - name: 'Move deno directory to root' - run: | - mv ./deno/* . - rmdir ./deno - - # Commit changes: - - name: 'Commit changes' - run: | - git add -A - git commit -m "Auto-generated commit" - - # Push changes to `deno` branch: - - name: 'Push changes to `deno` branch' - run: | - SLUG=${{ github.repository }} - echo "Pushing changes to $SLUG..." - git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno - - # Send notification to Zulip if job fails: - - name: 'Send notification to Zulip in case of failure' - # Pin action to full length commit SHA - uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2 - if: failure() - with: - api-key: ${{ secrets.ZULIP_API_KEY }} - email: 'github-actions-bot@stdlib.zulipchat.com' - organization-url: 'https://stdlib.zulipchat.com' - to: 'workflows-standalone' - type: 'stream' - topic: ${{ github.event.repository.name }} - content: | - :cross_mark: **${{ github.workflow }}** workflow failed - - **Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }}) - **Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) - - # Define job to create a UMD bundle... - umd: - - # Define display name: - name: 'Create UMD bundle' - - # Define the type of virtual host machine on which to run the job: - runs-on: ubuntu-latest - - # Indicate that this job depends on the test job finishing: - needs: test - - # Define the sequence of job steps... - steps: - # Checkout the repository: - - name: 'Checkout repository' - # Pin action to full length commit SHA - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - - # Configure Git: - - name: 'Configure Git' - run: | - git config --local user.email "noreply@stdlib.io" - git config --local user.name "stdlib-bot" - - # Check if remote `umd` branch exists: - - name: 'Check if remote `umd` branch exists' - id: umd-branch-exists - continue-on-error: true - run: | - git fetch --all - git ls-remote --exit-code --heads origin umd - if [ $? -eq 0 ]; then - echo "remote-exists=true" >> $GITHUB_OUTPUT - else - echo "remote-exists=false" >> $GITHUB_OUTPUT - fi - - # If `umd` exists, delete everything in branch and merge `production` into it - - name: 'If `umd` exists, delete everything in branch and merge `production` into it' - if: steps.umd-branch-exists.outputs.remote-exists - run: | - git checkout -b umd origin/umd - - find . -type 'f' | grep -v -e ".git/" -e "package.json" -e "README.md" -e "LICENSE" -e "CONTRIBUTORS" -e "NOTICE" | xargs -r rm - find . -mindepth 1 -type 'd' | grep -v -e ".git" | xargs -r rm -rf - - git add -A - git commit -m "Remove files" --allow-empty - - git config merge.theirs.name 'simulate `-s theirs`' - git config merge.theirs.driver 'cat %B > %A' - GIT_CONFIG_PARAMETERS="'merge.default=theirs'" git merge origin/production --allow-unrelated-histories - - # Copy files from `production` branch if necessary: - git checkout origin/production -- . - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Auto-generated commit" - fi - - # If `umd` does not exist, create `umd` branch: - - name: 'If `umd` does not exist, create `umd` branch' - if: ${{ steps.umd-branch-exists.outputs.remote-exists == false }} - run: | - git checkout production - git checkout -b umd - - # Copy files to umd directory: - - name: 'Copy files to umd directory' - run: | - mkdir -p umd - cp README.md LICENSE CONTRIBUTORS NOTICE ./umd - - # Install Node.js - - name: 'Install Node.js' - # Pin action to full length commit SHA - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 - with: - node-version: 20 - timeout-minutes: 5 - - # Install dependencies: - - name: 'Install production and development dependencies' - id: install - run: | - npm install || npm install || npm install - timeout-minutes: 15 - - # Extract alias: - - name: 'Extract alias' - id: extract-alias - run: | - alias=$(grep -E 'require\(' README.md | head -n 1 | sed -E 's/^var ([a-zA-Z0-9_]+) = .+/\1/') - echo "alias=${alias}" >> $GITHUB_OUTPUT - - # Create Universal Module Definition (UMD) Node.js bundle: - - name: 'Create Universal Module Definition (UMD) Node.js bundle' - id: umd-bundle-node - uses: stdlib-js/bundle-action@main - with: - target: 'umd-node' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Create Universal Module Definition (UMD) browser bundle: - - name: 'Create Universal Module Definition (UMD) browser bundle' - id: umd-bundle-browser - uses: stdlib-js/bundle-action@main - with: - target: 'umd-browser' - alias: ${{ steps.extract-alias.outputs.alias }} - - # Rewrite file contents: - - name: 'Rewrite file contents' - run: | - - # Replace links to other packages with links to the umd branch: - find ./umd -type f -name '*.md' -print0 | xargs -0 sed -Ei "/\/tree\/main/b; /^\[@stdlib[^:]+: https:\/\/github.com\/stdlib-js\// s/(.*)/\\1\/tree\/umd/"; - - # Remove `installation`, `cli`, and `c` sections: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/
[^<]+<\/section>//g;" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.cli \-\->//g" - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/(\* \* \*\n+)?
[\s\S]+<\!\-\- \/.c \-\->//g" - - # Rewrite first `require()` to show consumption of the UMD bundle in Observable and via a `script` tag: - find ./umd -type f -name '*.md' -print0 | xargs -0 perl -0777 -i -pe "s/\`\`\`javascript\n(var|let|const)\s+([a-zA-Z0-9_]+)\s+=\s*require\( '\@stdlib\/([^']+)' \);\n\`\`\`/To use in Observable,\n\n\`\`\`javascript\n\2 = require\( 'https:\/\/cdn.jsdelivr.net\/gh\/stdlib-js\/\3\@umd\/browser.js' \)\n\`\`\`\n\nTo vendor stdlib functionality and avoid installing dependency trees for Node.js, you can use the UMD server build:\n\n\`\`\`javascript\nvar \2 = require\( 'path\/to\/vendor\/umd\/\3\/index.js' \)\n\`\`\`\n\nTo include the bundle in a webpage,\n\n\`\`\`html\n + + ```
@@ -156,7 +153,7 @@ console.log( objectKeys( ns ) ); ## Notice -This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. +This package is part of [stdlib][stdlib], a standard library with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more. For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib]. @@ -221,75 +218,75 @@ Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors]. -[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even +[@stdlib/math/base/assert/int32-is-even]: https://github.com/stdlib-js/math-base-assert-int32-is-even/tree/esm -[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd +[@stdlib/math/base/assert/int32-is-odd]: https://github.com/stdlib-js/math-base-assert-int32-is-odd/tree/esm -[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite +[@stdlib/math/base/assert/is-composite]: https://github.com/stdlib-js/math-base-assert-is-composite/tree/esm -[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime +[@stdlib/math/base/assert/is-coprime]: https://github.com/stdlib-js/math-base-assert-is-coprime/tree/esm -[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even +[@stdlib/math/base/assert/is-even]: https://github.com/stdlib-js/math-base-assert-is-even/tree/esm -[@stdlib/math/base/assert/is-evenf]: https://github.com/stdlib-js/math-base-assert-is-evenf +[@stdlib/math/base/assert/is-evenf]: https://github.com/stdlib-js/math-base-assert-is-evenf/tree/esm -[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite +[@stdlib/math/base/assert/is-finite]: https://github.com/stdlib-js/math-base-assert-is-finite/tree/esm -[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef +[@stdlib/math/base/assert/is-finitef]: https://github.com/stdlib-js/math-base-assert-is-finitef/tree/esm -[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite +[@stdlib/math/base/assert/is-infinite]: https://github.com/stdlib-js/math-base-assert-is-infinite/tree/esm -[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef +[@stdlib/math/base/assert/is-infinitef]: https://github.com/stdlib-js/math-base-assert-is-infinitef/tree/esm -[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer +[@stdlib/math/base/assert/is-integer]: https://github.com/stdlib-js/math-base-assert-is-integer/tree/esm -[@stdlib/math/base/assert/is-integerf]: https://github.com/stdlib-js/math-base-assert-is-integerf +[@stdlib/math/base/assert/is-integerf]: https://github.com/stdlib-js/math-base-assert-is-integerf/tree/esm -[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan +[@stdlib/math/base/assert/is-nan]: https://github.com/stdlib-js/math-base-assert-is-nan/tree/esm -[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf +[@stdlib/math/base/assert/is-nanf]: https://github.com/stdlib-js/math-base-assert-is-nanf/tree/esm -[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite +[@stdlib/math/base/assert/is-negative-finite]: https://github.com/stdlib-js/math-base-assert-is-negative-finite/tree/esm -[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer +[@stdlib/math/base/assert/is-negative-integer]: https://github.com/stdlib-js/math-base-assert-is-negative-integer/tree/esm -[@stdlib/math/base/assert/is-negative-integerf]: https://github.com/stdlib-js/math-base-assert-is-negative-integerf +[@stdlib/math/base/assert/is-negative-integerf]: https://github.com/stdlib-js/math-base-assert-is-negative-integerf/tree/esm -[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero +[@stdlib/math/base/assert/is-negative-zero]: https://github.com/stdlib-js/math-base-assert-is-negative-zero/tree/esm -[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof +[@stdlib/math/base/assert/is-negative-zerof]: https://github.com/stdlib-js/math-base-assert-is-negative-zerof/tree/esm -[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite +[@stdlib/math/base/assert/is-nonnegative-finite]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-finite/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer +[@stdlib/math/base/assert/is-nonnegative-integer]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integer/tree/esm -[@stdlib/math/base/assert/is-nonnegative-integerf]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integerf +[@stdlib/math/base/assert/is-nonnegative-integerf]: https://github.com/stdlib-js/math-base-assert-is-nonnegative-integerf/tree/esm -[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite +[@stdlib/math/base/assert/is-nonpositive-finite]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-finite/tree/esm -[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer +[@stdlib/math/base/assert/is-nonpositive-integer]: https://github.com/stdlib-js/math-base-assert-is-nonpositive-integer/tree/esm -[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd +[@stdlib/math/base/assert/is-odd]: https://github.com/stdlib-js/math-base-assert-is-odd/tree/esm -[@stdlib/math/base/assert/is-oddf]: https://github.com/stdlib-js/math-base-assert-is-oddf +[@stdlib/math/base/assert/is-oddf]: https://github.com/stdlib-js/math-base-assert-is-oddf/tree/esm -[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite +[@stdlib/math/base/assert/is-positive-finite]: https://github.com/stdlib-js/math-base-assert-is-positive-finite/tree/esm -[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer +[@stdlib/math/base/assert/is-positive-integer]: https://github.com/stdlib-js/math-base-assert-is-positive-integer/tree/esm -[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero +[@stdlib/math/base/assert/is-positive-zero]: https://github.com/stdlib-js/math-base-assert-is-positive-zero/tree/esm -[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof +[@stdlib/math/base/assert/is-positive-zerof]: https://github.com/stdlib-js/math-base-assert-is-positive-zerof/tree/esm -[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime +[@stdlib/math/base/assert/is-prime]: https://github.com/stdlib-js/math-base-assert-is-prime/tree/esm -[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability +[@stdlib/math/base/assert/is-probability]: https://github.com/stdlib-js/math-base-assert-is-probability/tree/esm -[@stdlib/math/base/assert/is-probabilityf]: https://github.com/stdlib-js/math-base-assert-is-probabilityf +[@stdlib/math/base/assert/is-probabilityf]: https://github.com/stdlib-js/math-base-assert-is-probabilityf/tree/esm -[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer +[@stdlib/math/base/assert/is-safe-integer]: https://github.com/stdlib-js/math-base-assert-is-safe-integer/tree/esm -[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2 +[@stdlib/math/base/assert/uint32-is-pow2]: https://github.com/stdlib-js/math-base-assert-uint32-is-pow2/tree/esm diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 9702d4c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Security - -> Policy for reporting security vulnerabilities. - -See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/branches.md b/branches.md deleted file mode 100644 index 4e3c6b1..0000000 --- a/branches.md +++ /dev/null @@ -1,56 +0,0 @@ - - -# Branches - -This repository has the following branches: - -- **main**: default branch generated from the [stdlib project][stdlib-url], where all development takes place. -- **production**: [production build][production-url] of the package (e.g., reformatted error messages to reduce bundle sizes and thus the number of bytes transmitted over a network). -- **esm**: [ES Module][esm-url] branch for use via a `script` tag without the need for installation and bundlers (see [README][esm-readme]). -- **deno**: [Deno][deno-url] branch for use in Deno (see [README][deno-readme]). -- **umd**: [UMD][umd-url] branch for use in Observable, or in dual browser/Node.js environments (see [README][umd-readme]). - -The following diagram illustrates the relationships among the above branches: - -```mermaid -graph TD; -A[stdlib]-->|generate standalone package|B; -B[main] -->|productionize| C[production]; -C -->|bundle| D[esm]; -C -->|bundle| E[deno]; -C -->|bundle| F[umd]; - -%% click A href "https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert" -%% click B href "https://github.com/stdlib-js/math-base-assert/tree/main" -%% click C href "https://github.com/stdlib-js/math-base-assert/tree/production" -%% click D href "https://github.com/stdlib-js/math-base-assert/tree/esm" -%% click E href "https://github.com/stdlib-js/math-base-assert/tree/deno" -%% click F href "https://github.com/stdlib-js/math-base-assert/tree/umd" -``` - -[stdlib-url]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/math/base/assert -[production-url]: https://github.com/stdlib-js/math-base-assert/tree/production -[deno-url]: https://github.com/stdlib-js/math-base-assert/tree/deno -[deno-readme]: https://github.com/stdlib-js/math-base-assert/blob/deno/README.md -[umd-url]: https://github.com/stdlib-js/math-base-assert/tree/umd -[umd-readme]: https://github.com/stdlib-js/math-base-assert/blob/umd/README.md -[esm-url]: https://github.com/stdlib-js/math-base-assert/tree/esm -[esm-readme]: https://github.com/stdlib-js/math-base-assert/blob/esm/README.md \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 15e948f..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -import ns from '../docs/types/index'; -export = ns; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 93392a1..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";var i=require('@stdlib/utils-define-read-only-property/dist'),e={};i(e,"isEvenInt32",require('@stdlib/math-base-assert-int32-is-even/dist'));i(e,"isOddInt32",require('@stdlib/math-base-assert-int32-is-odd/dist'));i(e,"isComposite",require('@stdlib/math-base-assert-is-composite/dist'));i(e,"isCoprime",require('@stdlib/math-base-assert-is-coprime/dist'));i(e,"isEven",require('@stdlib/math-base-assert-is-even/dist'));i(e,"isEvenf",require('@stdlib/math-base-assert-is-evenf/dist'));i(e,"isFinite",require('@stdlib/math-base-assert-is-finite/dist'));i(e,"isFinitef",require('@stdlib/math-base-assert-is-finitef/dist'));i(e,"isInfinite",require('@stdlib/math-base-assert-is-infinite/dist'));i(e,"isInfinitef",require('@stdlib/math-base-assert-is-infinitef/dist'));i(e,"isInteger",require('@stdlib/math-base-assert-is-integer/dist'));i(e,"isIntegerf",require('@stdlib/math-base-assert-is-integerf/dist'));i(e,"isnan",require('@stdlib/math-base-assert-is-nan/dist'));i(e,"isnanf",require('@stdlib/math-base-assert-is-nanf/dist'));i(e,"isNegativeFinite",require('@stdlib/math-base-assert-is-negative-finite/dist'));i(e,"isNegativeInteger",require('@stdlib/math-base-assert-is-negative-integer/dist'));i(e,"isNegativeIntegerf",require('@stdlib/math-base-assert-is-negative-integerf/dist'));i(e,"isNegativeZero",require('@stdlib/math-base-assert-is-negative-zero/dist'));i(e,"isNegativeZerof",require('@stdlib/math-base-assert-is-negative-zerof/dist'));i(e,"isNonNegativeFinite",require('@stdlib/math-base-assert-is-nonnegative-finite/dist'));i(e,"isNonNegativeInteger",require('@stdlib/math-base-assert-is-nonnegative-integer/dist'));i(e,"isNonnegativeIntegerf",require('@stdlib/math-base-assert-is-nonnegative-integerf/dist'));i(e,"isNonPositiveFinite",require('@stdlib/math-base-assert-is-nonpositive-finite/dist'));i(e,"isNonPositiveInteger",require('@stdlib/math-base-assert-is-nonpositive-integer/dist'));i(e,"isOdd",require('@stdlib/math-base-assert-is-odd/dist'));i(e,"isOddf",require('@stdlib/math-base-assert-is-oddf/dist'));i(e,"isPositiveFinite",require('@stdlib/math-base-assert-is-positive-finite/dist'));i(e,"isPositiveInteger",require('@stdlib/math-base-assert-is-positive-integer/dist'));i(e,"isPositiveZero",require('@stdlib/math-base-assert-is-positive-zero/dist'));i(e,"isPositiveZerof",require('@stdlib/math-base-assert-is-positive-zerof/dist'));i(e,"isPrime",require('@stdlib/math-base-assert-is-prime/dist'));i(e,"isProbability",require('@stdlib/math-base-assert-is-probability/dist'));i(e,"isProbabilityf",require('@stdlib/math-base-assert-is-probabilityf/dist'));i(e,"isSafeInteger",require('@stdlib/math-base-assert-is-safe-integer/dist'));i(e,"isPow2Uint32",require('@stdlib/math-base-assert-uint32-is-pow2/dist'));module.exports=e; -/** @license Apache-2.0 */ -//# sourceMappingURL=index.js.map diff --git a/dist/index.js.map b/dist/index.js.map deleted file mode 100644 index 553b4e9..0000000 --- a/dist/index.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../lib/index.js"], - "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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nsetReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nsetReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nsetReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nsetReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nsetReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nsetReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nsetReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nsetReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nsetReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nsetReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nsetReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nsetReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nsetReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nsetReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nsetReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nsetReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nsetReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nsetReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nsetReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nsetReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nsetReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nsetReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nsetReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nsetReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nsetReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nsetReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nsetReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nsetReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nsetReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nsetReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nsetReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nsetReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nsetReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nsetReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nsetReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"], - "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,cAAe,QAAS,wCAAyC,CAAE,EASpFD,EAAaC,EAAI,aAAc,QAAS,uCAAwC,CAAE,EASlFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,WAAY,QAAS,oCAAqC,CAAE,EAS7ED,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,uCAAwC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,qCAAsC,CAAE,EAS/ED,EAAaC,EAAI,aAAc,QAAS,sCAAuC,CAAE,EASjFD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,qBAAsB,QAAS,+CAAgD,CAAE,EASlGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,wBAAyB,QAAS,kDAAmD,CAAE,EASxGD,EAAaC,EAAI,sBAAuB,QAAS,gDAAiD,CAAE,EASpGD,EAAaC,EAAI,uBAAwB,QAAS,iDAAkD,CAAE,EAStGD,EAAaC,EAAI,QAAS,QAAS,iCAAkC,CAAE,EASvED,EAAaC,EAAI,SAAU,QAAS,kCAAmC,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,6CAA8C,CAAE,EAS9FD,EAAaC,EAAI,oBAAqB,QAAS,8CAA+C,CAAE,EAShGD,EAAaC,EAAI,iBAAkB,QAAS,2CAA4C,CAAE,EAS1FD,EAAaC,EAAI,kBAAmB,QAAS,4CAA6C,CAAE,EAS5FD,EAAaC,EAAI,UAAW,QAAS,mCAAoC,CAAE,EAS3ED,EAAaC,EAAI,gBAAiB,QAAS,yCAA0C,CAAE,EASvFD,EAAaC,EAAI,iBAAkB,QAAS,0CAA2C,CAAE,EASzFD,EAAaC,EAAI,gBAAiB,QAAS,0CAA2C,CAAE,EASxFD,EAAaC,EAAI,eAAgB,QAAS,yCAA0C,CAAE,EAKtF,OAAO,QAAUA", - "names": ["setReadOnly", "ns"] -} diff --git a/docs/types/test.ts b/docs/types/test.ts deleted file mode 100644 index c2dd14e..0000000 --- a/docs/types/test.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* -* @license Apache-2.0 -* -* Copyright (c) 2021 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable @typescript-eslint/no-unused-expressions */ - -import ns = require( './index' ); - - -// TESTS // - -// The exported value is the expected interface... -{ - ns; // $ExpectType Namespace -} diff --git a/examples/index.js b/examples/index.js deleted file mode 100644 index 1c381c9..0000000 --- a/examples/index.js +++ /dev/null @@ -1,24 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - -console.log( objectKeys( ns ) ); diff --git a/docs/types/index.d.ts b/index.d.ts similarity index 100% rename from docs/types/index.d.ts rename to index.d.ts diff --git a/index.mjs b/index.mjs new file mode 100644 index 0000000..bcc8e6d --- /dev/null +++ b/index.mjs @@ -0,0 +1,4 @@ +// Copyright (c) 2026 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 +/// +import s from"https://cdn.jsdelivr.net/gh/stdlib-js/utils-define-read-only-property@v0.2.3-esm/index.mjs";import e from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";export{default as isEvenInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-even@v0.3.2-esm/index.mjs";import t from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";export{default as isOddInt32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-int32-is-odd@v0.3.2-esm/index.mjs";import i from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";export{default as isComposite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-composite@v0.3.2-esm/index.mjs";import n from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";export{default as isCoprime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-coprime@v0.2.3-esm/index.mjs";import r from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";export{default as isEven}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-even@v0.2.5-esm/index.mjs";import d from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";export{default as isEvenf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-evenf@v0.1.1-esm/index.mjs";import a from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";export{default as isFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finite@v0.2.3-esm/index.mjs";import m from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";export{default as isFinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-finitef@v0.2.3-esm/index.mjs";import o from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";export{default as isInfinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinite@v0.2.3-esm/index.mjs";import j from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";export{default as isInfinitef}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-infinitef@v0.2.3-esm/index.mjs";import h from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";export{default as isInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integer@v0.2.7-esm/index.mjs";import v from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";export{default as isIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-integerf@v0.1.1-esm/index.mjs";import l from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";export{default as isnan}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nan@v0.2.3-esm/index.mjs";import f from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";export{default as isnanf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nanf@v0.2.3-esm/index.mjs";import p from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";export{default as isNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-finite@v0.3.2-esm/index.mjs";import b from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";export{default as isNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integer@v0.3.2-esm/index.mjs";import g from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";export{default as isNegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-integerf@v0.1.1-esm/index.mjs";import x from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";export{default as isNegativeZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zero@v0.2.3-esm/index.mjs";import c from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";export{default as isNegativeZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-negative-zerof@v0.1.4-esm/index.mjs";import u from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";export{default as isNonNegativeFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-finite@v0.3.2-esm/index.mjs";import I from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";export{default as isNonNegativeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integer@v0.2.2-esm/index.mjs";import N from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";export{default as isNonnegativeIntegerf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonnegative-integerf@v0.1.1-esm/index.mjs";import P from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";export{default as isNonPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-finite@v0.3.2-esm/index.mjs";import F from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";export{default as isNonPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-nonpositive-integer@v0.2.3-esm/index.mjs";import y from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";export{default as isOdd}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-odd@v0.3.2-esm/index.mjs";import z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";export{default as isOddf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-oddf@v0.1.1-esm/index.mjs";import Z from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";export{default as isPositiveFinite}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-finite@v0.3.2-esm/index.mjs";import E from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";export{default as isPositiveInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-integer@v0.3.2-esm/index.mjs";import O from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";export{default as isPositiveZero}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zero@v0.2.3-esm/index.mjs";import w from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";export{default as isPositiveZerof}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-positive-zerof@v0.1.4-esm/index.mjs";import C from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";export{default as isPrime}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-prime@v0.3.2-esm/index.mjs";import S from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";export{default as isProbability}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probability@v0.2.4-esm/index.mjs";import U from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";export{default as isProbabilityf}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-probabilityf@v0.1.1-esm/index.mjs";import k from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";export{default as isSafeInteger}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-is-safe-integer@v0.3.2-esm/index.mjs";import q from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";export{default as isPow2Uint32}from"https://cdn.jsdelivr.net/gh/stdlib-js/math-base-assert-uint32-is-pow2@v0.3.2-esm/index.mjs";var A={};s(A,"isEvenInt32",e),s(A,"isOddInt32",t),s(A,"isComposite",i),s(A,"isCoprime",n),s(A,"isEven",r),s(A,"isEvenf",d),s(A,"isFinite",a),s(A,"isFinitef",m),s(A,"isInfinite",o),s(A,"isInfinitef",j),s(A,"isInteger",h),s(A,"isIntegerf",v),s(A,"isnan",l),s(A,"isnanf",f),s(A,"isNegativeFinite",p),s(A,"isNegativeInteger",b),s(A,"isNegativeIntegerf",g),s(A,"isNegativeZero",x),s(A,"isNegativeZerof",c),s(A,"isNonNegativeFinite",u),s(A,"isNonNegativeInteger",I),s(A,"isNonnegativeIntegerf",N),s(A,"isNonPositiveFinite",P),s(A,"isNonPositiveInteger",F),s(A,"isOdd",y),s(A,"isOddf",z),s(A,"isPositiveFinite",Z),s(A,"isPositiveInteger",E),s(A,"isPositiveZero",O),s(A,"isPositiveZerof",w),s(A,"isPrime",C),s(A,"isProbability",S),s(A,"isProbabilityf",U),s(A,"isSafeInteger",k),s(A,"isPow2Uint32",q);export{A as default}; +//# sourceMappingURL=index.mjs.map diff --git a/index.mjs.map b/index.mjs.map new file mode 100644 index 0000000..d82b9be --- /dev/null +++ b/index.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"index.mjs","sources":["../lib/index.js"],"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\nimport setReadOnly from '@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 isEvenInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-even}\n*/\nimport isEvenInt32 from '@stdlib/math-base-assert-int32-is-even';\nsetReadOnly( ns, 'isEvenInt32', isEvenInt32 );\n\n/**\n* @name isOddInt32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/int32-is-odd}\n*/\nimport isOddInt32 from '@stdlib/math-base-assert-int32-is-odd';\nsetReadOnly( ns, 'isOddInt32', isOddInt32 );\n\n/**\n* @name isComposite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-composite}\n*/\nimport isComposite from '@stdlib/math-base-assert-is-composite';\nsetReadOnly( ns, 'isComposite', isComposite );\n\n/**\n* @name isCoprime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-coprime}\n*/\nimport isCoprime from '@stdlib/math-base-assert-is-coprime';\nsetReadOnly( ns, 'isCoprime', isCoprime );\n\n/**\n* @name isEven\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-even}\n*/\nimport isEven from '@stdlib/math-base-assert-is-even';\nsetReadOnly( ns, 'isEven', isEven );\n\n/**\n* @name isEvenf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-evenf}\n*/\nimport isEvenf from '@stdlib/math-base-assert-is-evenf';\nsetReadOnly( ns, 'isEvenf', isEvenf );\n\n/**\n* @name isFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finite}\n*/\nimport isFinite from '@stdlib/math-base-assert-is-finite';\nsetReadOnly( ns, 'isFinite', isFinite );\n\n/**\n* @name isFinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-finitef}\n*/\nimport isFinitef from '@stdlib/math-base-assert-is-finitef';\nsetReadOnly( ns, 'isFinitef', isFinitef );\n\n/**\n* @name isInfinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinite}\n*/\nimport isInfinite from '@stdlib/math-base-assert-is-infinite';\nsetReadOnly( ns, 'isInfinite', isInfinite );\n\n/**\n* @name isInfinitef\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-infinitef}\n*/\nimport isInfinitef from '@stdlib/math-base-assert-is-infinitef';\nsetReadOnly( ns, 'isInfinitef', isInfinitef );\n\n/**\n* @name isInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integer}\n*/\nimport isInteger from '@stdlib/math-base-assert-is-integer';\nsetReadOnly( ns, 'isInteger', isInteger );\n\n/**\n* @name isIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-integerf}\n*/\nimport isIntegerf from '@stdlib/math-base-assert-is-integerf';\nsetReadOnly( ns, 'isIntegerf', isIntegerf );\n\n/**\n* @name isnan\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nan}\n*/\nimport isnan from '@stdlib/math-base-assert-is-nan';\nsetReadOnly( ns, 'isnan', isnan );\n\n/**\n* @name isnanf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nanf}\n*/\nimport isnanf from '@stdlib/math-base-assert-is-nanf';\nsetReadOnly( ns, 'isnanf', isnanf );\n\n/**\n* @name isNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-finite}\n*/\nimport isNegativeFinite from '@stdlib/math-base-assert-is-negative-finite';\nsetReadOnly( ns, 'isNegativeFinite', isNegativeFinite );\n\n/**\n* @name isNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integer}\n*/\nimport isNegativeInteger from '@stdlib/math-base-assert-is-negative-integer';\nsetReadOnly( ns, 'isNegativeInteger', isNegativeInteger );\n\n/**\n* @name isNegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-integerf}\n*/\nimport isNegativeIntegerf from '@stdlib/math-base-assert-is-negative-integerf';\nsetReadOnly( ns, 'isNegativeIntegerf', isNegativeIntegerf );\n\n/**\n* @name isNegativeZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zero}\n*/\nimport isNegativeZero from '@stdlib/math-base-assert-is-negative-zero';\nsetReadOnly( ns, 'isNegativeZero', isNegativeZero );\n\n/**\n* @name isNegativeZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-negative-zerof}\n*/\nimport isNegativeZerof from '@stdlib/math-base-assert-is-negative-zerof';\nsetReadOnly( ns, 'isNegativeZerof', isNegativeZerof );\n\n/**\n* @name isNonNegativeFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite}\n*/\nimport isNonNegativeFinite from '@stdlib/math-base-assert-is-nonnegative-finite';\nsetReadOnly( ns, 'isNonNegativeFinite', isNonNegativeFinite );\n\n/**\n* @name isNonNegativeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer}\n*/\nimport isNonNegativeInteger from '@stdlib/math-base-assert-is-nonnegative-integer';\nsetReadOnly( ns, 'isNonNegativeInteger', isNonNegativeInteger );\n\n/**\n* @name isNonnegativeIntegerf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf}\n*/\nimport isNonnegativeIntegerf from '@stdlib/math-base-assert-is-nonnegative-integerf';\nsetReadOnly( ns, 'isNonnegativeIntegerf', isNonnegativeIntegerf );\n\n/**\n* @name isNonPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite}\n*/\nimport isNonPositiveFinite from '@stdlib/math-base-assert-is-nonpositive-finite';\nsetReadOnly( ns, 'isNonPositiveFinite', isNonPositiveFinite );\n\n/**\n* @name isNonPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer}\n*/\nimport isNonPositiveInteger from '@stdlib/math-base-assert-is-nonpositive-integer';\nsetReadOnly( ns, 'isNonPositiveInteger', isNonPositiveInteger );\n\n/**\n* @name isOdd\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-odd}\n*/\nimport isOdd from '@stdlib/math-base-assert-is-odd';\nsetReadOnly( ns, 'isOdd', isOdd );\n\n/**\n* @name isOddf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-oddf}\n*/\nimport isOddf from '@stdlib/math-base-assert-is-oddf';\nsetReadOnly( ns, 'isOddf', isOddf );\n\n/**\n* @name isPositiveFinite\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-finite}\n*/\nimport isPositiveFinite from '@stdlib/math-base-assert-is-positive-finite';\nsetReadOnly( ns, 'isPositiveFinite', isPositiveFinite );\n\n/**\n* @name isPositiveInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-integer}\n*/\nimport isPositiveInteger from '@stdlib/math-base-assert-is-positive-integer';\nsetReadOnly( ns, 'isPositiveInteger', isPositiveInteger );\n\n/**\n* @name isPositiveZero\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zero}\n*/\nimport isPositiveZero from '@stdlib/math-base-assert-is-positive-zero';\nsetReadOnly( ns, 'isPositiveZero', isPositiveZero );\n\n/**\n* @name isPositiveZerof\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-positive-zerof}\n*/\nimport isPositiveZerof from '@stdlib/math-base-assert-is-positive-zerof';\nsetReadOnly( ns, 'isPositiveZerof', isPositiveZerof );\n\n/**\n* @name isPrime\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-prime}\n*/\nimport isPrime from '@stdlib/math-base-assert-is-prime';\nsetReadOnly( ns, 'isPrime', isPrime );\n\n/**\n* @name isProbability\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probability}\n*/\nimport isProbability from '@stdlib/math-base-assert-is-probability';\nsetReadOnly( ns, 'isProbability', isProbability );\n\n/**\n* @name isProbabilityf\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-probabilityf}\n*/\nimport isProbabilityf from '@stdlib/math-base-assert-is-probabilityf';\nsetReadOnly( ns, 'isProbabilityf', isProbabilityf );\n\n/**\n* @name isSafeInteger\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/is-safe-integer}\n*/\nimport isSafeInteger from '@stdlib/math-base-assert-is-safe-integer';\nsetReadOnly( ns, 'isSafeInteger', isSafeInteger );\n\n/**\n* @name isPow2Uint32\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2}\n*/\nimport isPow2Uint32 from '@stdlib/math-base-assert-uint32-is-pow2';\nsetReadOnly( ns, 'isPow2Uint32', isPow2Uint32 );\n\n\n// EXPORTS //\n\nexport default ns;\n"],"names":["ns","setReadOnly","isEvenInt32","isOddInt32","isComposite","isCoprime","isEven","isEvenf","isFinite","isFinitef","isInfinite","isInfinitef","isInteger","isIntegerf","isnan","isnanf","isNegativeFinite","isNegativeInteger","isNegativeIntegerf","isNegativeZero","isNegativeZerof","isNonNegativeFinite","isNonNegativeInteger","isNonnegativeIntegerf","isNonPositiveFinite","isNonPositiveInteger","isOdd","isOddf","isPositiveFinite","isPositiveInteger","isPositiveZero","isPositiveZerof","isPrime","isProbability","isProbabilityf","isSafeInteger","isPow2Uint32"],"mappings":";;6mQAoCA,IAAAA,EAAA,CAAA,EAUAC,EAAAD,EAAA,cAAAE,GAUAD,EAAAD,EAAA,aAAAG,GAUAF,EAAAD,EAAA,cAAAI,GAUAH,EAAAD,EAAA,YAAAK,GAUAJ,EAAAD,EAAA,SAAAM,GAUAL,EAAAD,EAAA,UAAAO,GAUAN,EAAAD,EAAA,WAAAQ,GAUAP,EAAAD,EAAA,YAAAS,GAUAR,EAAAD,EAAA,aAAAU,GAUAT,EAAAD,EAAA,cAAAW,GAUAV,EAAAD,EAAA,YAAAY,GAUAX,EAAAD,EAAA,aAAAa,GAUAZ,EAAAD,EAAA,QAAAc,GAUAb,EAAAD,EAAA,SAAAe,GAUAd,EAAAD,EAAA,mBAAAgB,GAUAf,EAAAD,EAAA,oBAAAiB,GAUAhB,EAAAD,EAAA,qBAAAkB,GAUAjB,EAAAD,EAAA,iBAAAmB,GAUAlB,EAAAD,EAAA,kBAAAoB,GAUAnB,EAAAD,EAAA,sBAAAqB,GAUApB,EAAAD,EAAA,uBAAAsB,GAUArB,EAAAD,EAAA,wBAAAuB,GAUAtB,EAAAD,EAAA,sBAAAwB,GAUAvB,EAAAD,EAAA,uBAAAyB,GAUAxB,EAAAD,EAAA,QAAA0B,GAUAzB,EAAAD,EAAA,SAAA2B,GAUA1B,EAAAD,EAAA,mBAAA4B,GAUA3B,EAAAD,EAAA,oBAAA6B,GAUA5B,EAAAD,EAAA,iBAAA8B,GAUA7B,EAAAD,EAAA,kBAAA+B,GAUA9B,EAAAD,EAAA,UAAAgC,GAUA/B,EAAAD,EAAA,gBAAAiC,GAUAhC,EAAAD,EAAA,iBAAAkC,GAUAjC,EAAAD,EAAA,gBAAAmC,GAUAlC,EAAAD,EAAA,eAAAoC"} \ No newline at end of file diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 3e4f9c3..0000000 --- a/lib/index.js +++ /dev/null @@ -1,357 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -/* -* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. -*/ - -// MODULES // - -var setReadOnly = require( '@stdlib/utils-define-read-only-property' ); - - -// MAIN // - -/** -* Top-level namespace. -* -* @namespace ns -*/ -var ns = {}; - -/** -* @name isEvenInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-even} -*/ -setReadOnly( ns, 'isEvenInt32', require( '@stdlib/math-base-assert-int32-is-even' ) ); - -/** -* @name isOddInt32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/int32-is-odd} -*/ -setReadOnly( ns, 'isOddInt32', require( '@stdlib/math-base-assert-int32-is-odd' ) ); - -/** -* @name isComposite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-composite} -*/ -setReadOnly( ns, 'isComposite', require( '@stdlib/math-base-assert-is-composite' ) ); - -/** -* @name isCoprime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-coprime} -*/ -setReadOnly( ns, 'isCoprime', require( '@stdlib/math-base-assert-is-coprime' ) ); - -/** -* @name isEven -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-even} -*/ -setReadOnly( ns, 'isEven', require( '@stdlib/math-base-assert-is-even' ) ); - -/** -* @name isEvenf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-evenf} -*/ -setReadOnly( ns, 'isEvenf', require( '@stdlib/math-base-assert-is-evenf' ) ); - -/** -* @name isFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finite} -*/ -setReadOnly( ns, 'isFinite', require( '@stdlib/math-base-assert-is-finite' ) ); - -/** -* @name isFinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-finitef} -*/ -setReadOnly( ns, 'isFinitef', require( '@stdlib/math-base-assert-is-finitef' ) ); - -/** -* @name isInfinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinite} -*/ -setReadOnly( ns, 'isInfinite', require( '@stdlib/math-base-assert-is-infinite' ) ); - -/** -* @name isInfinitef -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-infinitef} -*/ -setReadOnly( ns, 'isInfinitef', require( '@stdlib/math-base-assert-is-infinitef' ) ); - -/** -* @name isInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integer} -*/ -setReadOnly( ns, 'isInteger', require( '@stdlib/math-base-assert-is-integer' ) ); - -/** -* @name isIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-integerf} -*/ -setReadOnly( ns, 'isIntegerf', require( '@stdlib/math-base-assert-is-integerf' ) ); - -/** -* @name isnan -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nan} -*/ -setReadOnly( ns, 'isnan', require( '@stdlib/math-base-assert-is-nan' ) ); - -/** -* @name isnanf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nanf} -*/ -setReadOnly( ns, 'isnanf', require( '@stdlib/math-base-assert-is-nanf' ) ); - -/** -* @name isNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-finite} -*/ -setReadOnly( ns, 'isNegativeFinite', require( '@stdlib/math-base-assert-is-negative-finite' ) ); - -/** -* @name isNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integer} -*/ -setReadOnly( ns, 'isNegativeInteger', require( '@stdlib/math-base-assert-is-negative-integer' ) ); - -/** -* @name isNegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-integerf} -*/ -setReadOnly( ns, 'isNegativeIntegerf', require( '@stdlib/math-base-assert-is-negative-integerf' ) ); - -/** -* @name isNegativeZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zero} -*/ -setReadOnly( ns, 'isNegativeZero', require( '@stdlib/math-base-assert-is-negative-zero' ) ); - -/** -* @name isNegativeZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-negative-zerof} -*/ -setReadOnly( ns, 'isNegativeZerof', require( '@stdlib/math-base-assert-is-negative-zerof' ) ); - -/** -* @name isNonNegativeFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-finite} -*/ -setReadOnly( ns, 'isNonNegativeFinite', require( '@stdlib/math-base-assert-is-nonnegative-finite' ) ); - -/** -* @name isNonNegativeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integer} -*/ -setReadOnly( ns, 'isNonNegativeInteger', require( '@stdlib/math-base-assert-is-nonnegative-integer' ) ); - -/** -* @name isNonnegativeIntegerf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonnegative-integerf} -*/ -setReadOnly( ns, 'isNonnegativeIntegerf', require( '@stdlib/math-base-assert-is-nonnegative-integerf' ) ); - -/** -* @name isNonPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-finite} -*/ -setReadOnly( ns, 'isNonPositiveFinite', require( '@stdlib/math-base-assert-is-nonpositive-finite' ) ); - -/** -* @name isNonPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-nonpositive-integer} -*/ -setReadOnly( ns, 'isNonPositiveInteger', require( '@stdlib/math-base-assert-is-nonpositive-integer' ) ); - -/** -* @name isOdd -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-odd} -*/ -setReadOnly( ns, 'isOdd', require( '@stdlib/math-base-assert-is-odd' ) ); - -/** -* @name isOddf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-oddf} -*/ -setReadOnly( ns, 'isOddf', require( '@stdlib/math-base-assert-is-oddf' ) ); - -/** -* @name isPositiveFinite -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-finite} -*/ -setReadOnly( ns, 'isPositiveFinite', require( '@stdlib/math-base-assert-is-positive-finite' ) ); - -/** -* @name isPositiveInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-integer} -*/ -setReadOnly( ns, 'isPositiveInteger', require( '@stdlib/math-base-assert-is-positive-integer' ) ); - -/** -* @name isPositiveZero -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zero} -*/ -setReadOnly( ns, 'isPositiveZero', require( '@stdlib/math-base-assert-is-positive-zero' ) ); - -/** -* @name isPositiveZerof -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-positive-zerof} -*/ -setReadOnly( ns, 'isPositiveZerof', require( '@stdlib/math-base-assert-is-positive-zerof' ) ); - -/** -* @name isPrime -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-prime} -*/ -setReadOnly( ns, 'isPrime', require( '@stdlib/math-base-assert-is-prime' ) ); - -/** -* @name isProbability -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probability} -*/ -setReadOnly( ns, 'isProbability', require( '@stdlib/math-base-assert-is-probability' ) ); - -/** -* @name isProbabilityf -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-probabilityf} -*/ -setReadOnly( ns, 'isProbabilityf', require( '@stdlib/math-base-assert-is-probabilityf' ) ); - -/** -* @name isSafeInteger -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/is-safe-integer} -*/ -setReadOnly( ns, 'isSafeInteger', require( '@stdlib/math-base-assert-is-safe-integer' ) ); - -/** -* @name isPow2Uint32 -* @memberof ns -* @readonly -* @type {Function} -* @see {@link module:@stdlib/math/base/assert/uint32-is-pow2} -*/ -setReadOnly( ns, 'isPow2Uint32', require( '@stdlib/math-base-assert-uint32-is-pow2' ) ); - - -// EXPORTS // - -module.exports = ns; diff --git a/package.json b/package.json index 575bd22..1fd9df9 100644 --- a/package.json +++ b/package.json @@ -3,30 +3,8 @@ "version": "0.4.1", "description": "Base mathematical assertion utilities.", "license": "Apache-2.0", - "author": { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - }, - "contributors": [ - { - "name": "The Stdlib Authors", - "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" - } - ], - "main": "./lib", - "directories": { - "doc": "./docs", - "example": "./examples", - "lib": "./lib", - "test": "./test" - }, - "types": "./docs/types", - "scripts": { - "test": "make test", - "test-cov": "make test-cov", - "examples": "make examples", - "benchmark": "make benchmark" - }, + "type": "module", + "main": "./index.mjs", "homepage": "https://stdlib.io", "repository": { "type": "git", @@ -35,101 +13,6 @@ "bugs": { "url": "https://github.com/stdlib-js/stdlib/issues" }, - "dependencies": { - "@stdlib/math-base-assert-int32-is-even": "^0.3.2", - "@stdlib/math-base-assert-int32-is-odd": "^0.3.2", - "@stdlib/math-base-assert-is-composite": "^0.3.2", - "@stdlib/math-base-assert-is-coprime": "^0.2.3", - "@stdlib/math-base-assert-is-even": "^0.2.5", - "@stdlib/math-base-assert-is-evenf": "^0.1.1", - "@stdlib/math-base-assert-is-finite": "^0.2.3", - "@stdlib/math-base-assert-is-finitef": "^0.2.3", - "@stdlib/math-base-assert-is-infinite": "^0.2.3", - "@stdlib/math-base-assert-is-infinitef": "^0.2.3", - "@stdlib/math-base-assert-is-integer": "^0.2.7", - "@stdlib/math-base-assert-is-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-nan": "^0.2.3", - "@stdlib/math-base-assert-is-nanf": "^0.2.3", - "@stdlib/math-base-assert-is-negative-finite": "^0.3.2", - "@stdlib/math-base-assert-is-negative-integer": "^0.3.2", - "@stdlib/math-base-assert-is-negative-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-negative-zero": "^0.2.3", - "@stdlib/math-base-assert-is-negative-zerof": "^0.1.4", - "@stdlib/math-base-assert-is-nonnegative-finite": "^0.3.2", - "@stdlib/math-base-assert-is-nonnegative-integer": "^0.2.2", - "@stdlib/math-base-assert-is-nonnegative-integerf": "^0.1.1", - "@stdlib/math-base-assert-is-nonpositive-finite": "^0.3.2", - "@stdlib/math-base-assert-is-nonpositive-integer": "^0.2.3", - "@stdlib/math-base-assert-is-odd": "^0.3.2", - "@stdlib/math-base-assert-is-oddf": "^0.1.1", - "@stdlib/math-base-assert-is-positive-finite": "^0.3.2", - "@stdlib/math-base-assert-is-positive-integer": "^0.3.2", - "@stdlib/math-base-assert-is-positive-zero": "^0.2.3", - "@stdlib/math-base-assert-is-positive-zerof": "^0.1.4", - "@stdlib/math-base-assert-is-prime": "^0.3.2", - "@stdlib/math-base-assert-is-probability": "^0.2.4", - "@stdlib/math-base-assert-is-probabilityf": "^0.1.1", - "@stdlib/math-base-assert-is-safe-integer": "^0.3.2", - "@stdlib/math-base-assert-uint32-is-pow2": "^0.3.2", - "@stdlib/utils-define-read-only-property": "^0.2.3" - }, - "devDependencies": { - "@stdlib/assert-is-boolean": "^0.2.3", - "@stdlib/boolean-ctor": "^0.2.3", - "@stdlib/console-log-each-map": "^0.1.1", - "@stdlib/constants-float32-max": "^0.2.3", - "@stdlib/constants-float32-ninf": "^0.2.3", - "@stdlib/constants-float32-pinf": "^0.2.3", - "@stdlib/constants-float32-smallest-subnormal": "^0.2.3", - "@stdlib/constants-float64-max": "^0.2.3", - "@stdlib/constants-float64-max-safe-integer": "^0.2.3", - "@stdlib/constants-float64-min-safe-integer": "^0.2.3", - "@stdlib/constants-float64-ninf": "^0.2.3", - "@stdlib/constants-float64-pinf": "^0.2.3", - "@stdlib/constants-float64-smallest-subnormal": "^0.2.3", - "@stdlib/constants-int32-max": "^0.3.1", - "@stdlib/datasets-primes-100k": "^0.2.3", - "@stdlib/math-base-special-floor": "^0.2.4", - "@stdlib/math-base-special-floorf": "^0.2.3", - "@stdlib/math-base-special-gcd": "^0.3.2", - "@stdlib/math-base-special-log10": "^0.3.1", - "@stdlib/math-base-special-log2": "^0.3.1", - "@stdlib/math-base-special-pow": "^0.3.1", - "@stdlib/math-base-special-round": "^0.3.1", - "@stdlib/math-base-special-roundf": "^0.1.1", - "@stdlib/math-base-special-sqrt": "^0.2.3", - "@stdlib/math-base-special-trunc": "^0.2.3", - "@stdlib/math-base-special-truncf": "^0.2.3", - "@stdlib/number-ctor": "^0.2.3", - "@stdlib/number-float64-base-to-float32": "^0.2.3", - "@stdlib/random-array-discrete-uniform": "^0.2.2", - "@stdlib/random-array-uniform": "^0.2.2", - "@stdlib/random-base-discrete-uniform": "^0.2.2", - "@stdlib/random-base-randu": "^0.2.3", - "@stdlib/random-base-uniform": "^0.2.3", - "@stdlib/error-tools-fmtprodmsg": "^0.2.3", - "@stdlib/utils-keys": "^0.2.3", - "@stdlib/utils-try-require": "^0.2.3", - "tape": "git+https://github.com/kgryte/tape.git#fix/globby", - "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git", - "@stdlib/bench-harness": "^0.2.3" - }, - "engines": { - "node": ">=0.10.0", - "npm": ">2.7.0" - }, - "os": [ - "aix", - "darwin", - "freebsd", - "linux", - "macos", - "openbsd", - "sunos", - "win32", - "windows" - ], "keywords": [ "stdlib", "stdmath", diff --git a/stats.html b/stats.html new file mode 100644 index 0000000..74aed14 --- /dev/null +++ b/stats.html @@ -0,0 +1,4842 @@ + + + + + + + + Rollup Visualizer + + + +
+ + + + + diff --git a/test/dist/test.js b/test/dist/test.js deleted file mode 100644 index a8a9c60..0000000 --- a/test/dist/test.js +++ /dev/null @@ -1,33 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2023 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var main = require( './../../dist' ); - - -// TESTS // - -tape( 'main export is defined', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( main !== void 0, true, 'main export is defined' ); - t.end(); -}); diff --git a/test/test.js b/test/test.js deleted file mode 100644 index ecdba25..0000000 --- a/test/test.js +++ /dev/null @@ -1,40 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -'use strict'; - -// MODULES // - -var tape = require( 'tape' ); -var objectKeys = require( '@stdlib/utils-keys' ); -var ns = require( './../lib' ); - - -// TESTS // - -tape( 'main export is an object', function test( t ) { - t.ok( true, __filename ); - t.strictEqual( typeof ns, 'object', 'main export is an object' ); - t.end(); -}); - -tape( 'the exported object contains base math assertion utilities', function test( t ) { - var keys = objectKeys( ns ); - t.strictEqual( keys.length > 0, true, 'has keys' ); - t.end(); -});